[Insight-users] Re: [vtkusers] about the run time lib of vtk(itk)
Luis Ibanez
luis.ibanez at kitware.com
Mon Aug 9 23:05:17 EDT 2004
HI Yixun,
If you have libraries A and B on MS-Windows and
A is build for Debug Multithread DLL
B is bulid for Debug Singlethread DLL
You *cannot* use them together in an application.
Note that you may *force* them to link by telling
the linker to silence its warnings, but that will
simply produce a dangerous executable that may
crash at any time. (and of course, it will always
choose the worst possible time :-/ ).
You are lucky in this case, because one of the
libraries (VTK) is open source and you can recompile
it with the apropriate options.
Isn't Open Source great ? :-)
Regards,
Luis
-----------------
Yixun Liu wrote:
> Hi,
>
> I need use two libs, one of them is VTK4.2. I build the VTK4.2
> with the run time lib: Debug Multithread DLL. However, the other lib is
> build with the run time lib : Debug single thread. I can rebuild any
> one of them to make them have the same run time lib. However, if I only
> have the binary version of the two libs, namely, I can not rebuild them,
> how to config to make them use the same run time libs?
>
> Thank you in advances!
>
> Best regards,
>
> Yixun Liu
>
>
> ------------------------------------------------------------------------
>
More information about the Insight-users
mailing list