<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Hi,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT
face=Arial> My
project use two libs: vtk4.2 and tcl.lib. (MSVC6.0 server pack6,
VTK4.2, WindowsXP)</FONT></DIV>
<DIV><FONT face=Arial>I build vtk4.2 with the run time lib: Debug Multi thread
with DLL</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>I use two methods to config my project.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>1. Use the CmakeSetup to config my project and it
work fine.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>2. New a project and copy the include path , linked path
and the linked libs from the first method. However, often receive the run
time lib conflict error:</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public:
__thiscall std::ios_base::Init::Init(void)" (</FONT><A
href="mailto:??0Init@ios_base@std@@QAE@XZ"><FONT
face=Arial>??0Init@ios_base@std@@QAE@XZ</FONT></A><FONT face=Arial>) already
defined in libcpmtd.lib(iostream.obj)</FONT></DIV>
<DIV><FONT face=Arial>......</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Even though I config the run time lib: Debug Multi
thread with DLL in my project setting, the error as before.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>I am very confused. I think the reason may be the tcl.lib
use the Debug multi thread run time lib, but why the first method can avoid this
conflict?</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Hope your help!</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Best regards,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Yixun Liu</FONT></DIV></BODY></HTML>