[Insight-users] Link Error! Help.

firebird at medison.com firebird at medison.com
Tue Apr 12 09:51:34 EDT 2005


 Hello, everyone.

 When I compiled ITK sample code with Visual C++ 6.0 without CMakeSetup.exe, 

 There was Link Error as following message :

svcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::ios_base::Init::Init(void)" (??0Init at ios_base@std@@QAE at XZ) already defined in libcpmtd.lib(iostream.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::ios_base::Init::~Init(void)" (??1Init at ios_base@std@@QAE at XZ) already defined in libcpmtd.lib(iostream.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::_Winit::_Winit(void)" (??0_Winit at std@@QAE at XZ) already defined in libcpmtd.lib(wiostrea.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::_Winit::~_Winit(void)" (??1_Winit at std@@QAE at XZ) already defined in libcpmtd.lib(wiostrea.obj)
 

 But, The link was successful when I used CMakeSetup.exe.

 I wonder how I can compile ITK code successfully without CMakeSetup.exe, when I use Visual C++ 6.0

 Do I always have to compile with CMakeSetup.exe?  

 Thank you.

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050412/cf55e5fa/attachment.htm


More information about the Insight-users mailing list