[vtkusers] static tcl wrapped vtk link error using mingw
Dean Inglis
dean.inglis at camris.ca
Fri Jul 30 19:05:44 EDT 2010
Im statically building vtk 5.7 on win32 Vista with
mingw/msys and run into the following compile error, (using MinGW
Makefiles,through CMake 2.8):
Linking CXX executable ..\..\bin\vtk.exe
Creating library file: ..\..\bin\libvtk.dll.a
d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
c:(.text+0xe60): undefined reference to `ImmGetContext at 4'
d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
c:(.text+0xe8a): undefined reference to `ImmSetCompositionWindow at 8'
d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
c:(.text+0xe99): undefined reference to `ImmReleaseContext at 8'
d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
c:(.text+0x1b18): undefined reference to `ImmGetContext at 4'
d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
c:(.text+0x1b48): undefined reference to `ImmGetCompositionStringW at 16'
d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
c:(.text+0x1b87): undefined reference to `ImmGetCompositionStringW at 16'
d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
c:(.text+0x1ca4): undefined reference to `ImmReleaseContext at 8'
d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
c:(.text+0x1ccd): undefined reference to `ImmGetCompositionStringA at 16'
d:\Developer\Releases\MinGW\STATIC\TESTCM28\Tcl\lib\libtk85s.a(tkWinX.o):tkWinX.
c:(.text+0x1cf6): undefined reference to `ImmGetCompositionStringA at 16'
collect2: ld returned 1 exit status
mingw32-make[2]: *** [bin/vtk.exe] Error 1
mingw32-make[1]: *** [Wrapping/Tcl/CMakeFiles/vtk.dir/all] Error 2
mingw32-make: *** [all] Error 2
tcl/tk 8.5 is built statically with mingw32-make. Any ideas on how to fix
this?
Dean
>
More information about the vtkusers
mailing list