Trying to find out what causes the crash I started a new wxWidgets project, and imediately (without changing anything in the code) did a debug build. This crashes also.
After setting Full command line compiler logging this is the Build log:
-------------- Build: Debug in test ---------------
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -g -D__WXDEBUG__ -II:\wxWidgets-2.8.7\include -II:\wxWidgets-2.8.7\contrib\include -II:\wxWidgets-2.8.7\lib\gcc_dll\mswud -c "C:\Documenten Wobien\code_blocks\wxWidgets\test\wx_pch.h" -o wx_pch.h.gch\Debug_wx_pch_h_gch
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
cc1plus.exe: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
I then tried it again, making another new project, this time unchecking "Create and use precompiled headers" when creating the project.
This time the debug build works fine, and I can run a debug session, set breakpoints etc.
Questions:
1. What is the preprocessed source, and where do I find it?
2. Are precompiles headers incompatible with a debug build?
3. How can I remove the precompiling of headers from my existing project?