[vtk-developers] undefined reference to `__imp_SymSetOptions'

Ken Martin ken.martin at kitware.com
Wed Sep 16 17:16:44 EDT 2015


That is my bad.  I was using that code to help debug some OpenGL issues
and it seemed like useful code (nicely print out a stack trace whenever
you want).  So I tried leaving it in there worrying that it would cause an
issue. I was originally going to leave it in as a comment block :-) but I
hate doing that. Looks like MINGW was the issue. I'll yank it as it is not
used by VTK currently.

Thanks
Ken


Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
ken.martin at kitware.com
919 869-8871 (w)


This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you
are not the intended recipient, any disclosure, copying, distribution or
any action taken in reliance on it is prohibited and may be unlawful. If
you received this communication in error please notify us immediately and
destroy the original message.  Thank you.


-----Original Message-----
From: vtk-developers [mailto:vtk-developers-bounces at vtk.org] On Behalf Of
Chaffra Affouda
Sent: Wednesday, September 16, 2015 11:53 AM
To: VTK Developers
Subject: [vtk-developers] undefined reference to `__imp_SymSetOptions'

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):vtkWi
n32OutputWindow.cxx:(.text
+0x848): undefined reference to `__imp_SymSetOptions'
CMakeFiles/vtkCommonCore.dir/objects.a(vtkWin32OutputWindow.cxx.obj):vtkWi
n32OutputWindow.cxx:(.text
+0x859): undefined reference to `__imp_SymInitialize'
CMakeFiles/vtkCommonCore.dir/objects.a(vtkWin32OutputWindow.cxx.obj):vtkWi
n32OutputWindow.cxx:(.text
+0x89d): undefined reference to `__imp_SymFromAddr'
CMakeFiles/vtkCommonCore.dir/objects.a(vtkWin32OutputWindow.cxx.obj):vtkWi
n32OutputWindow.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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers


More information about the vtk-developers mailing list