[vtkusers] vtk50 linker porblems in visual studio net 2003

Thomas Lambertz thomas at hexerei-software.de
Tue May 23 23:33:10 EDT 2006


Hi,

looks a bit like you linked different versions of the runtime libraries. 
You may check this under Project->Properties->Configuration 
Properties->C/C++->Code Generation -> Runtime Library. If two depending 
projects of your solution use different libraries this results in a 
conflict between them cause both deliver different functions under the 
same name.

Hope that helps,
Tom

Wang HJ wrote:
> Hi,
>
> I used the same codes very well with previous version VTK in visual  
> studio net 2003 c++, but now  I used  the same codes with vtk5.0 and 
> the same setting in  visual  studio net 2003 c++ , I met  the linking 
> problems as:
> msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class 
> std::basic_ostream<char,struct std::char_traits<char> > & __thiscall 
> std::basic_ostream<char,struct std::char_traits<char> 
> >::operator<<(class std::basic_ostream<char,struct 
> std::char_traits<char> > & (__cdecl*)(class 
> std::basic_ostream<char,struct std::char_traits<char> > &))" 
> (??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QAEAAV01 at P6AAAV01@AAV01@@Z at Z) 
> already defined in imageautoseg.obj
> msvcprt.lib(MSVCP71.dll) : error LNK2005: "public: class 
> std::basic_ostream<char,struct std::char_traits<char> > & __thiscall 
> std::basic_ostream<char,struct std::char_traits<char> 
> >::operator<<(int)" 
> (??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QAEAAV01 at H@Z) already 
> defined in imageautoseg.obj
> msvcprt.lib(MSVCP71.dll) : error LNK2005: "class 
> std::basic_ostream<char,struct std::char_traits<char> > & __cdecl 
> std::endl(class std::basic_ostream<char,struct std::char_traits<char> 
> > &)"
> ......
>
> how to solve these problems, if I set "ignore the specific lib 
> msvcprt.lib", a ton of errors will appear
>
> Who can help me, thank you very much
>
>
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list