缺少protobuf lib DLL?

时间:2020-10-19 15:25:50

标签: c++ visual-studio protobuf-c

我正在VS 2017中使用Protobuf类型的C ++项目中工作。此类型在名为gameinformation.pb.h的自动生成的库中定义。该头文件定义名称空间GameInfo和连续类GameInformation

我之前遇到过一些库问题,但通过在链接器->输入中添加到libprotobuf.lib的路径来解决它们,还添加了其他依赖项,并将行#define PROTOBUF_USE_DLLS添加到了我的代码中。

现在,看起来好像程序在编译时正在为.dll寻找gameinformation.pb.h

1>Server.obj : error LNK2001: unresolved external symbol "public: virtual __cdecl GameInfo::GameInformation::~GameInformation(void)" (??1GameInformation@GameInfo@@UEAA@XZ)
1>Server.obj : error LNK2001: unresolved external symbol "protected: __cdecl GameInfo::GameInformation::GameInformation(class google::protobuf::Arena *)" (??0GameInformation@GameInfo@@IEAA@PEAVArena@protobuf@google@@@Z)
1>Server.obj : error LNK2001: unresolved external symbol "const GameInfo::GameInformation::`vftable'" (??_7GameInformation@GameInfo@@6B@)
1>C:\Perforce\eve\branches\sandbox\EAC_EVAL\carbon\src\test_game_server\x64\Release\test_game_server.exe : fatal error LNK1120: 3 unresolved externals

头文件是自动生成的,并且似乎没有gameinformation.dll/.lib文件。

我需要做什么?

0 个答案:

没有答案