Win10,Visual Studio 15 2017
这就是我到目前为止所做的:
cmake --build 在 grpc 上之后我的空项目,包括编译没有错误的 pb 文件。
然后我写了一些代码来使用和测试 grpc,但是当我这次尝试编译时,我收到了几个错误,比如
LNK2019 unresolved external symbol _address_sorting_init referenced in function "void __cdecl grpc_resolver_dns_ares_init(void)" (?grpc_resolver_dns_ares_init@@YAXXZ) grpc.lib(dns_resolver_ares.obj)
LNK2001 unresolved external symbol __imp__htons@4 grpc.lib(socket_utils_windows.obj)
LNK2019 unresolved external symbol _ares_gethostbyname …Run Code Online (Sandbox Code Playgroud)