[vtkusers] vtk50 linker porblems in visual studio net 2003

Wang HJ hjwang126 at hotmail.com
Tue May 23 23:11:47 EDT 2006


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





More information about the vtkusers mailing list