Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugrpt sample can't be built #2

Open
asmwarrior opened this issue Sep 18, 2022 · 0 comments
Open

debugrpt sample can't be built #2

asmwarrior opened this issue Sep 18, 2022 · 0 comments

Comments

@asmwarrior
Copy link
Owner


-------------- 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 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant