0

我在 VS 2010 中编译 gloox 时遇到问题。我收到以下错误报告:

1>------ Build started: Project: gloox-1.0, Configuration: Release Win32 ------
 Creating library C:\Install\gloox-1.0.13\Release\gloox-1.0.lib and object     C:\Install\gloox-1.0.13\Release\gloox-1.0.exp
1>adhoc.obj : error LNK2001: unresolved external symbol "public: virtual   class gloox::IOData * __thiscall gloox::IOData::clone(void)const " (?clone@IOData@gloox@@UBEPAV12@XZ)
1>adhoc.obj : error LNK2001: unresolved external symbol "public: virtual class gloox::Tag * __thiscall gloox::IOData::tag(void)const " (?tag@IOData@gloox@@UBEPAVTag@2@XZ)
1>adhoc.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gloox::IOData::~IOData(void)" (??1IOData@gloox@@UAE@XZ)
1>adhoc.obj : error LNK2001: unresolved external symbol "public: __thiscall gloox::IOData::IOData(class gloox::Tag const *)" (??0IOData@gloox@@QAE@PBVTag@1@@Z)
1>C:\Install\gloox-1.0.13\Release\gloox-1.0.dll : fatal error LNK1120: 4 unresolved externals

有人可以帮我吗,我在这里想念什么?我是 C++ 编程新手和 VS 新用户,因此我们将不胜感激。

4

1 回答 1

3

右键单击项目 > 添加 > 现有文件。然后添加 iodata.cpp 和 iodata.h。

这解决了我的问题。

于 2015-02-14T19:06:21.660 回答