[Insight-users] Problems with std::basic_stringbuf and vnl

Luis Ibanez luis.ibanez at kitware.com
Fri, 16 Apr 2004 15:13:17 -0400


Hi Sergion,

This usually happens when you mix code compiled
for Release with code compiled for Debug.

You are probably compiling ITK for one mode and
your application for the other compilation mode.

This shouldn't be a problem if your application
has a CMakeList.txt file correctly configured...

You are probably forcing the names of the libraries
to link with,... or maybe you are not using CMake
for configuring your project... ?

--------

If you get errors when you compile ITK for Debug,
please post the exact error messages to the list.


Error messages are usually very helpful   :-)



   Thanks


      Luis



----------------------
Sergio Andres wrote:

> 
> Hi all,
> 
> I have compiled ITK with MSVC++ 6.0 (Release configuration) and my 
> application,
> which uses vnl_matlab_filewrite... and I got 4 errors like this:
> 
> msvcprt.lib(MSVCP60.dll) : error LNK2005:
> public: virtual __thiscall std::basic_stringbuf<char,struct 
> std::char_traits<char>,class std::allocator<char> 
>  >::~basic_stringbuf<char,struct std::char_traits<char>,class 
> std::allocator<char> >(void)" 
> (??1?$basic_stringbuf at DU?$char_traits at D at std at  at V?$allocator at D at 2 at  at std at  at UAE at XZ) 
> already defined in itkvnl.lib(vnl_matlab_filewrite.obj)
> 
> I don't know what to do to fix it..
> 
> Furthermore, I got no errors when I compiled in Debug configuration.
> 
> I will appreciate any help.
> Thanks!
> 
> Regards,
> Sergio Andres.
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>