-------------- Build: win_gcc in debugrpt (compiler: GNU GCC Compiler)---------------
[ 50.0%] g++.exe -Wall -IF:/msys2/mingw64/lib/wx/include/msw-unicode-3.2 -IF:/msys2/mingw64/include/wx-3.2 -mthreads -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMSW__ -DHAVE_W32API_H -D_UNICODE -fmessage-length=0 -pipe -c F:\code\cb_projects_for_wxWidgets\samples\debugrpt\debugrpt.cpp -o .objs\win_gcc\debugrpt.o
F:\code\cb_projects_for_wxWidgets\samples\debugrpt\debugrpt.cpp:37:6: error: #error "This sample can't be built without wxUSE_ON_FATAL_EXCEPTION"
37 | #error "This sample can't be built without wxUSE_ON_FATAL_EXCEPTION"
| ^~~~~
F:\code\cb_projects_for_wxWidgets\samples\debugrpt\debugrpt.cpp: In constructor 'MyApp::MyApp()':
F:\code\cb_projects_for_wxWidgets\samples\debugrpt\debugrpt.cpp:399:5: error: 'wxHandleFatalExceptions' was not declared in this scope; did you mean 'OnFatalException'?
399 | wxHandleFatalExceptions();
| ^~~~~~~~~~~~~~~~~~~~~~~
| OnFatalException
Process terminated with status 1 (0 minute(s), 4 second(s))
2 error(s), 0 warning(s) (0 minute(s), 4 second(s))
In the wx's header file: chkconf.h, there are some code:
/*
* All of the settings below require SEH support (__try/__catch) and can't work
* without it.
*/
#if !defined(_MSC_VER)
# undef wxUSE_ON_FATAL_EXCEPTION
# define wxUSE_ON_FATAL_EXCEPTION 0
# undef wxUSE_CRASHREPORT
# define wxUSE_CRASHREPORT 0
#endif /* compiler doesn't support SEH */
In the wx's header file: chkconf.h, there are some code: