[vtkusers] vtk-6.3 with static tcl/tk wrapping leaves unresolved __imp__ symbols

Beck Olson Beck.Olson at ucsf.edu
Wed Mar 9 13:59:51 EST 2016


Greetings!

     I'm a long-time vtk user and am trying to build vtk 6.3 with static 
Tcl/Tk wrapping using Visual Studio 2010. In the past all that I have 
needed to do was set VTK_USE_TK, VTK_WRAP_TCL, and VTK_TCL_TK_STATIC as 
well as change the compiler flags from /MD to /MT. With vtk 6.3 this now 
produces a vtkCommonCoreTCL library that appears to have __imp__Tcl_... 
symbols and when trying to link an application with static TCL/TK 
libraries I am seeing unresolved symbol errors (see below). I’m using 
the same static TCL/TK libraries that work fine with vtk 5.6.

Here's an example of the error:
vtkCommonCoreTCL-6.3.lib(vtkDataArrayTcl.obj) : error LNK2001: 
unresolved external symbol __imp__Tcl_GetDouble

Here is the command line compiling of the vtkCommonCoreTCL from visual 
studio:

/I"C:/Users/bolson.CAMPUS/Libraries/VTK/VTK-6.3.0/ThirdParty/utf8/source" /I"C:/Users/bolson.CAMPUS/Libraries/VTK/VTK-6.3.0-build-release/Common/DataModel" 
/I"C:/Users/bolson.CAMPUS/Libraries/VTK/VTK-6.3.0-build-release/Utilities/KWSys" 
/I"C:/Users/bolson.CAMPUS/Libraries/VTK/VTK-6.3.0/Utilities/KWSys" 
/I"C:/Users/bolson.CAMPUS/Libraries/VTK/VTK-6.3.0-build-release/Common/Core" 
/I"C:/Users/bolson.CAMPUS/Libraries/VTK/VTK-6.3.0/Common/Core" 
/I"C:/Users/bolson.CAMPUS/Libraries/VTK/VTK-6.3.0/Wrapping/Tcl" 
/I"C:/Users/bolson.CAMPUS/Libraries/VTK/VTK-6.3.0-build-release/Wrapping/Tcl" 
/I"C:/Users/Public/Tcl/tcl8.5.12/Install/include" /W4 /WX- /O2 /Ob2 /Oy- 
/D "WIN32" /D "_WINDOWS" /D "NDEBUG" /D "_CRT_SECURE_NO_DEPRECATE" /D 
"_CRT_NONSTDC_NO_DEPRECATE" /D "_CRT_SECURE_NO_WARNINGS" /D 
"_SCL_SECURE_NO_DEPRECATE" /D "_SCL_SECURE_NO_WARNINGS" /D "VTK_IN_VTK" 
/D "CMAKE_INTDIR=\"Release\"" /D "_MBCS" /Gm- /EHsc /MT /GS /fp:precise 
/Zc:wchar_t /Zc:forScope /GR 
/Fp"vtkCommonCoreTCL.dir\Release\vtkCommonCoreTCL-6.3.pch" /Fa"Release" 
/Fo"vtkCommonCoreTCL.dir\Release\" 
/Fd"C:/Users/bolson.CAMPUS/Libraries/VTK/VTK-6.3.0-build-release/lib/Release/vtkCommonCoreTCL-6.3.pdb" 
/Gd /TP /analyze- /errorReport:queue

Additional Options:
/Zm1000

Any help would be greatly appreciated!

--Beck


More information about the vtkusers mailing list