[vtkusers] vtk50 linker porblems in visual studio net 2003
Wang HJ
hjwang126 at hotmail.com
Wed May 24 23:29:17 EDT 2006
Hi,
Thank you very much, you are right, I should use the same version of my
code and the same setting in visual studio net 2003
>From: Thomas Lambertz <thomas at hexerei-software.de>
>To: vtkusers at vtk.org
>Subject: Re: [vtkusers] vtk50 linker porblems in visual studio net 2003
>Date: Wed, 24 May 2006 06:21:13 +0200
>
>Hi,
>
>the only idea i have left in the moment is you mixed debug/release versions
>of your code and vtk library.
>
>Regards,
>Tom
>
>Wang HJ wrote:
>>
>>Thank you for your reply, but I used the same the runtime
>>libraries in the depending libraries in my c++, there are still problems,
>>do you have another idea to handle these probelms, thank in advance
>>
>>>From: Thomas Lambertz <thomas at hexerei-software.de>
>>>To: vtkusers at vtk.org
>>>Subject: Re: [vtkusers] vtk50 linker porblems in visual studio net 2003
>>>Date: Wed, 24 May 2006 05:33:10 +0200
>>>
>>>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
>>>>
>>>
>>>_______________________________________________
>>>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
>>
>>
>>
>
>_______________________________________________
>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