Hello,
I tried to move my development from linux to windows in order to work with another C++ IDE than suits better my needs than KDevelop (except Eclipse), and I'm using the new Visual Studio 2005 express edition, that is free of charge.
With the package downladable from the ZeroC website, with all the PATH set properly and with the right directories set in the properties of VS, I'm able to compile without errors all the demos included in the package.
The problem comes when I want to create a new project for example called ChatClient, which has the same sources as ChatC just to learn the usage of VS with Ice. Consider that the "Custom build step" for the file .ice is correctly set.
In the linking phase I get this kind of error (several times):
Client.obj : error LNK2005: "void __cdecl IceInternal::incRef(class Demo::ChatCallback *)" (?incRef@IceInternal@@YAXPAVChatCallback@Demo@@@Z) already defined in Chat.obj
...and these errors (again...several times):
Chat.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall IceProxy::Glacier2::Session::Session(void)" (__imp_??0Session@Glacier2@IceProxy@@QAE@XZ) referenced in function "public: __thiscall IceProxy::Demo::ChatSession::ChatSession(void)" (??0ChatSession@Demo@IceProxy@@QAE@XZ)
Client.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall IceProxy::Glacier2::Session::Session(void)" (__imp_??0Session@Glacier2@IceProxy@@QAE@XZ)
What are the causes of these errors?
I have followed the instructions presented in this post:
http://www.zeroc.com/vbulletin/showthread.php?t=240
Thank you in advance
With my very best regards
Alberto

Reply With Quote