缺少protobuf lib DLL?

问题描述

我正在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 (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...