问题描述
我正在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
文件。
我需要做什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)