protobufLNK2019 无法解析的外部符号
"__declspec(dllimport) public: void __thiscall google::
protobuf::
io::
CodedInputStream::
GetDirectBufferPointerInline(void const * *,int *)
已经用了预编译宏——PROTOBUF_USE_DLLS,还是不能解决
这个时候检查:
protoc.exe的版本和你的程序依赖的protobuf版本是否同一个。
假设用3.10.0的protoc生成的.cc .h文件,到3.13.0的库中去使用,肯定链接失败!
只是同一个版本,就能解决!
就这个小问题,查起来真麻烦。