-3

when i use VS2012 Express nmake the build about Ice-Chat(1.4.0)(http://www.zeroc.com/chat/download.html), i always get the error:

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)

what should i do? i have import the include files and libs ,but don't work. I want to know Cpp11FnCallbackNC is belong to which lib.

4

1 回答 1

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

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

于 2013-08-09T13:29:25.963 回答