All sample applications crash when I do/use a MinGW/DLL build of wxMathPlot.
My config for CMake is a s following:
cmake -G "MinGW Makefiles" . -DMATHPLOT_SHARED=ON -DwxWidgets_USE_UNICODE=ON -DwxWidgets_ROOT_DIR=C:/wxWidgets-2.8.10 -DwxWidgets_LIB_DIR=C:/wxWidgets-2.8.10/lib/gcc_lib -DwxWidgets_CONFIGURATION=mswu -DwxWidgets_wxrc_EXECUTABLE=C:/wxWidgets-2.8.10/utils/wxrc/gcc_mswu/wxrc.exe
Note that you'll need to setup CMAKE_CXX_FLAGS to "-DwxUSE_UNICODE -D__WXMSW__ " for the compilation to work at all.
wxWidgets was compiled using:
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 USE_OPENGL=1 UNICODE=1
So basically wxMathPlot cannot be using with MinGW/GCC on Windows as DLL. :-(
Any help?
I forgot to mention: I am using the SVN sources as of today.