关于ICE-Chat Demo构建

时间:2013-08-09 06:08:50

标签: ice

当我使用VS2012 Express nmake关于Ice-Chat(1.4.0)(http://www.zeroc.com/chat/download.html)的构建时,我总是得到错误:

ChatRoom.obj : error LNK2001: Unresolved external symbol "__declspec(dllimport) public: __cdecl IceInternal::Cpp11FnCallbackNC::Cpp11FnCallbackNC(class std::function<void __cdecl(class IceUtil::Exception const &)> const &,class std::function<void __cdecl(bool)> const &)" (__imp_??0Cpp11FnCallbackNC@IceInternal@@QEAA@AEBV?$function@$$A6AXAEBVException@IceUtil@@@Z@std@@AEBV?$function@$$A6AX_N@Z@3@@Z)
ChatServer.obj : error LNK2001: Unresolved external symbol "__declspec(dllimport) public: __cdecl IceInternal::Cpp11FnCallbackNC::Cpp11FnCallbackNC(class std::function<void __cdecl(class IceUtil::Exception const &)> const &,class std::function<void __cdecl(bool)> const &)" (__imp_??0Cpp11FnCallbackNC@IceInternal@@QEAA@AEBV?$function@$$A6AXAEBVException@IceUtil@@@Z@std@@AEBV?$function@$$A6AX_N@Z@3@@Z)

我该怎么办?我已导入包含文件和库,但不起作用。我想知道Cpp11FnCallbackNC属于哪个lib。

1 个答案:

答案 0 :(得分:1)

好的,这就是答案:

安装ICE时,请说版本3.5.0到

${ICEDIR} 

您有以下目录:

for VS 2010:
${ICEDIR}/lib
for VS 2010 x64:
${ICEDIR}/lib/x64
for VS 2012:
${ICEDIR}/lib/vc110
for VS 2012 x64:
${ICEDIR}/lib/vc110/x64

在您的情况下,您可能添加了错误的库路径