Hi,<br><br>I am trying to build VTK against static Tcl/Tk libraries with Visual Studio 8 (2005)<br><br>I built Tcl/tk using the following commands:<br>nmake -f <a href="http://makefile.vc">makefile.vc</a> INSTALLDIR=c:\Tcl OPTS=static install<br>
nmake -f <a href="http://makefile.vc">makefile.vc</a> INSTALLDIR=c:\Tcl TCLDIR=c:\Tcl-Source OPTS=static install<br><br>These commands created tcl85s.lib, tk85s.lib, and tclsh85s.exe.<br><br>For VTK I am pointing to the above Tcl/tk related libs and have turned ON VTK_TCL_TK_STATIC, and turned OFF BUILD_SHARED_LIBS<br>
<br>When I try building VTK I get the following Linker errors and warnings(35 of them).<br><br>tk85s.lib(tkMain.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance<br>
LIBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in MSVCRTD.lib(MSVCR80D.dll)<br>MSVCRTD.lib(MSVCR80D.dll) : error LNK2005: __strdup already defined in LIBCMT.lib(strdup.obj)<br>LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library<br>
<br>Can anyone suggest a solution to this?<br><br>Thanks,<br>Ritesh<br>