Home Help Center

Codeblocks + Microsoft Visual C++ Compiler 2010

ferrazrafaelferrazrafael Member Rafael FerrazOrganization: Federal University of Ouro PretoProject: MMOG
I'm trying setup Codeblocks with microsoft C++ compiler, followed the steps for the visual studio manual configuration but something is missing, I keep getting this compile error:
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall IceInternal::Cpp11FnCallbackNC::Cpp11FnCallbackNC(class std::tr1::function<void __cdecl(class IceUtil::Exception const &)> const &,class std::tr1::function<void __cdecl(bool)> const &)" ([email protected]@@[email protected][email protected][email protected]@@@[email protected]@[email protected]@[email protected][email protected]@[email protected]@Z) referenced in function "public: __thiscall `private: class IceInternal::Handle<class Ice::AsyncResult> __thisc|

Codeblocks is configured like that:

Attachment not found.Attachment not found.Attachment not found.

Comments

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    We don't officially support this IDE, that being said i have noticed a few things in your configuration.

    <IceHome>lib\vc110 is for VS 2012 (VC110), for VS 2010 (VC100) you should use the libraries from <IceHome>\lib

    Also note that you need to use different linker settings for debug and release builds, use the import libraries with a d suffix (such as iced.lib and iceutild.lib) to link with the debug DLLs. In the screenshot you posted seems you are using the same settings for debug and release builds.
  • ferrazrafaelferrazrafael Member Rafael FerrazOrganization: Federal University of Ouro PretoProject: MMOG
    It worked. Thank you for the help.

    It's nice that ICE works with C::B because I need that my client runs on Windows and Linux. And C::B runs on both. I just need to have different build targets with different compilers for each platform.
Sign In or Register to comment.