Here the path and the configure of each one:
with enabled-debug:
Code: Select all
/home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/
../configure --disable-shared --enable-debug --with-gtk=2 --with-libtiff=no --with-opengl=no --enable-unicode
make
Code: Select all
/home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/
../configure --disable-shared --disable-debug --with-gtk=2 --with-libtiff=no --with-opengl=no --enable-unicode
make
With Code::Blocks, for my app i've set two build methods (using GCC 6.3).
The one that link to the debug enabled compiles, the one that links to the debug disabled no, starting from this error
Code: Select all
obj/Debug/src/CommManager.o: in function "wxPostEvent(wxEvtHandler*, wxEvent const&)":
/home/fc/wxWidgets/wxWidgets-3.0.4/include/wx/event.h:3815: undefined reference to "wxTheAssertHandler"
Could someone tells me why?
Following are the log of the two compile commands for the two different "versions":
with --enabled-debug
with --disabled-debugenabled-debug wrote: -------------- Clean: Debug i386-Debug in MSXPG (compiler: GNU GCC i386 per wxWidgets 3.0.4)---------------
Cleaned "MSXPG - Debug i386-Debug"
-------------- Build: Debug i386-Debug in MSXPG (compiler: GNU GCC i386 per wxWidgets 3.0.4)---------------
g++ -Og -g -pthread -D__WXDEBUG__ -pthread -std=gnu++11 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/wx/include/gtk2-unicode-static-3.0 -I/home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386 -I/home/fc/MSXPG/WXCHARTS/wxCharts_BetaLibrary/include -I/home/fc/MSXPG/WXCHARTS/wxCharts_BetaLibrary/include/wx/charts -I/home/fc/wxWidgets/wxWidgets-3.0.4/include -c /home/fc/MSXPG/MSXPG/src/<MANY FILES.cpp> -o obj/DebugD/src/<MANY FILES.o>
...
g++ -L/home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/wx/include/gtk2-unicode-static-3.0 -L/home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386 -L/home/fc/MSXPG/WXCHARTS/wxCharts_BetaLibrary/include -L/home/fc/wxWidgets/wxWidgets-3.0.4/include -o bin/DebugD/MSXPG obj/DebugD/src/<MANY FILES.o>
...
-pthread -lgthread-2.0 -lX11 -lXxf86vm -lSM -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lpng -lexpat -lwxregexu-3.0 -lwxjpeg-3.0 -lz -ldl -lm ../WXCHARTS/libwxchartsbetad.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_baseu_net-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_gtk2u_xrc-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_gtk2u_adv-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_gtk2u_propgrid-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_gtk2u_ribbon-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_gtk2u_richtext-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_gtk2u_stc-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_baseu_xml-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwxregexu-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwxscintilla-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_gtk2u_aui-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_gtk2u_html-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_gtk2u_core-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwxjpeg-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-debug-GTK2-i386/lib/libwx_baseu-3.0.a
/home/fc/MSXPG/MSXPG/src/fMainForm.cpp: In constructor ‘fMainForm::fMainForm(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, long int)’:
/home/fc/MSXPG/MSXPG/src/fMainForm.cpp:18:1: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
fMainForm::fMainForm(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style)
^~~~~~~~~
Output file is bin/DebugD/MSXPG with size 61.74 MB
Process terminated with status 0 (2 minute(s), 24 second(s))
0 error(s), 5 warning(s) (2 minute(s), 24 second(s))
disabled-debug wrote:
-------------- Clean: Debug i386 in MSXPG (compiler: GNU GCC i386 per wxWidgets 3.0.4)---------------
Cleaned "MSXPG - Debug i386"
-------------- Build: Debug i386 in MSXPG (compiler: GNU GCC i386 per wxWidgets 3.0.4)---------------
g++ -Og -g -pthread -pthread -std=gnu++11 -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/wx/include/gtk2-unicode-static-3.0 -I/home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib -I/home/fc/MSXPG/WXCHARTS/wxCharts_BetaLibrary/include -I/home/fc/MSXPG/WXCHARTS/wxCharts_BetaLibrary/include/wx/charts -I/home/fc/wxWidgets/wxWidgets-3.0.4/include -c /home/fc/MSXPG/MSXPG/src/<MANY FILES.cpp> -o obj/Debug/src/<MANY FILES.o>
...
g++ -L/home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/wx/include/gtk2-unicode-static-3.0 -L/home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib -L/home/fc/MSXPG/WXCHARTS/wxCharts_BetaLibrary/include -L/home/fc/wxWidgets/wxWidgets-3.0.4/include -o bin/Debug/MSXPG obj/Debug/src//<MANY FILES.o>
...
-pthread -lgthread-2.0 -lX11 -lXxf86vm -lSM -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lpng -lexpat -lwxregexu-3.0 -lwxjpeg-3.0 -lz -ldl -lm ../WXCHARTS/libwxchartsbetad.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_baseu_net-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_gtk2u_xrc-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_gtk2u_adv-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_gtk2u_propgrid-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_gtk2u_ribbon-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_gtk2u_richtext-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_gtk2u_stc-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_baseu_xml-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwxregexu-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwxscintilla-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_gtk2u_aui-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_gtk2u_html-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_gtk2u_core-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwxjpeg-3.0.a /home/fc/wxWidgets/wxWidgets-3.0.4/build-GTK2-i386/lib/libwx_baseu-3.0.a
/home/fc/MSXPG/MSXPG/src/fMainForm.cpp: In constructor ‘fMainForm::fMainForm(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, long int)’:
/home/fc/MSXPG/MSXPG/src/fMainForm.cpp:18:1: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
fMainForm::fMainForm(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style)
^~~~~~~~~
obj/Debug/src/CommManager.o: nella funzione "wxPostEvent(wxEvtHandler*, wxEvent const&)":
/home/fc/wxWidgets/wxWidgets-3.0.4/include/wx/event.h:3815: riferimento non definito a "wxTheAssertHandler"
/home/fc/wxWidgets/wxWidgets-3.0.4/include/wx/event.h:3815: riferimento non definito a "wxOnAssert(char const*, int, char const*, char const*, char const*)"
/home/fc/wxWidgets/wxWidgets-3.0.4/include/wx/event.h:3815: riferimento non definito a "wxTrapInAssert"
/home/fc/wxWidgets/wxWidgets-3.0.4/include/wx/event.h:3815: riferimento non definito a "wxTrapInAssert"
/home/fc/wxWidgets/wxWidgets-3.0.4/include/wx/event.h:3815: riferimento non definito a "wxTrap()"