Ticket #553 (closed defect: fixed)
build crash due to system config header
| Reported by: | Karlik | Owned by: | |
|---|---|---|---|
| Priority: | Should Have | Milestone: | |
| Component: | Atlas editor | Keywords: | |
| Cc: |
Description
I've got an error while building 0ad:
../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp: In member function ‘virtual bool AtlasDLLApp::OnInit()’: ../../../source/tools/atlas/AtlasUI/Misc/DLLInterface.cpp:191:28: error: ‘wxHandleFatalExceptions’ was not declared in this scope
It is because the wxHandleFatalExceptions' declaration in wx-2.8/wx/utils.h depend on config in wx/setup.h where I have "#define wxUSE_ON_FATAL_EXCEPTION 0". I can see in utils.h:
#if wxUSE_ON_FATAL_EXCEPTION // should wxApp::OnFatalException() be called? WXDLLIMPEXP_BASE bool wxHandleFatalExceptions(bool doit = true); #endif // wxUSE_ON_FATAL_EXCEPTION
I've disabled debugger's checking locally like in attached patch but I think it is not the best solution.
Attachments
Change History
comment:2 Changed 17 months ago by Philip
I think that solution sounds fine - if wx doesn't provide wxHandleFatalExceptions then there's nothing else we can do, and fatal exceptions will just crash the program, which is okay.
Note: See
TracTickets for help on using
tickets.

