[vtk-developers] undefined reference to `__imp_SymSetOptions'
Chaffra Affouda
chaffra at gmail.com
Wed Sep 16 11:52:45 EDT 2015
I think it has to do with
#pragma comment(lib, "Dbghelp.lib")
which works with MSVS but not MINGW. Where should I add -ldbghelp in the
cmake structure?
----
Hi,
When building with MinGW/MSYS2 I am getting the linkage error below. II
am using the trunk version (VTK6.3). The build used to work no problem
on MinGW. Looks like there is a missing library to link to on MINGW. Any
help would be appreciated.
Linking CXX shared library ../../bin/libvtkCommonCore-6.3.dll
CMakeFiles/vtkCommonCore.dir/objects.a(vtkWin32OutputWindow.cxx.obj):vtkWin32OutputWindow.cxx:(.text
+0x848): undefined reference to `__imp_SymSetOptions'
CMakeFiles/vtkCommonCore.dir/objects.a(vtkWin32OutputWindow.cxx.obj):vtkWin32OutputWindow.cxx:(.text
+0x859): undefined reference to `__imp_SymInitialize'
CMakeFiles/vtkCommonCore.dir/objects.a(vtkWin32OutputWindow.cxx.obj):vtkWin32OutputWindow.cxx:(.text
+0x89d): undefined reference to `__imp_SymFromAddr'
CMakeFiles/vtkCommonCore.dir/objects.a(vtkWin32OutputWindow.cxx.obj):vtkWin32OutputWindow.cxx:(.text
+0x8a9): undefined reference to `__imp_SymGetLineFromAddr64'
----cmake configure------------------------
-DCMAKE_BUILD_TYPE=Release
-DBUILD_TESTING=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_DOCUMENTATION=OFF
-DBUILD_SHARED_LIBS=ON
-DVTK_WRAP_PYTHON=ON
-DVTK_WRAP_JAVA=OFF
-DVTK_USE_TK:BOOL=ON
-DVTK_QT_VERSION=4
-DVTK_USE_SYSTEM_EXPAT=ON
-DVTK_USE_SYSTEM_FREETYPE=ON
-DVTK_USE_SYSTEM_GL2PS=ON
-DVTK_USE_SYSTEM_HDF5=ON
-DVTK_USE_SYSTEM_JPEG=ON
-DVTK_USE_SYSTEM_LIBXML2=ON
-DVTK_USE_SYSTEM_OGGTHEORA=ON
-DVTK_USE_SYSTEM_PNG=ON
-DVTK_USE_SYSTEM_TIFF=ON
-DVTK_USE_SYSTEM_ZLIB=ON
-DVTK_USE_SYSTEM_JSONCPP=ON
-DVTK_USE_SYSTEM_NETCDF=OFF
-DVTK_Group_Imaging=ON
-DVTK_Group_MPI=OFF
-DVTK_Group_Qt=ON
-DVTK_Group_Tk=ON
-DVTK_Group_Views=ON
-DVTK_Group_Rendering=ON
-DVTK_Group_StandAlone=ON
-DVTK_Group_Web=OFF
-DVTK_BUILD_ALL_MODULES=OFF
-DVTK_MAKE_INSTANTIATORS=ON
-DVTK_RENDERING_BACKEND:STRING=OpenGL
More information about the vtk-developers
mailing list