[vtkusers] vtk50 linker porblems in visual studio net 2003

X Z xf10036 at hotmail.com
Wed May 24 08:38:43 EDT 2006


Looks like you need to rebuilt vtk.  (you may be mixing the vtk libraries from different version in linking.)

xz
http://www.xzing.org

----------------------------------------
> From: hjwang126 at hotmail.com
> To: vtkusers at vtk.org
> Date: Wed, 24 May 2006 03:11:47 +0000
> Subject: [vtkusers] vtk50  linker porblems in visual  studio net 2003
> 
> 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

_________________________________________________________________
Enter the Windows Live Mail beta sweepstakes
http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx


More information about the vtkusers mailing list