Ticket #553 (closed defect: fixed)

Opened 18 months ago

Last modified 16 months ago

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

wxWidgets_patch Download (540 bytes) - added by Karlik 18 months ago.

Change History

Changed 18 months ago by Karlik

comment:1 Changed 18 months ago by Karlik

  • Component changed from Game engine to Atlas editor

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.

comment:3 Changed 17 months ago by philip

  • Status changed from new to closed
  • Resolution set to fixed

(In [8044]) Fix #553 (build error when wxUSE_ON_FATAL_EXCEPTION disabled), based on patch from Karlik

comment:4 Changed 16 months ago by anonymous

  • Milestone Unclassified deleted

Milestone Unclassified deleted

Note: See TracTickets for help on using tickets.