Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#553 closed defect (fixed)

build crash due to system config header

Reported by: Karol Trzcionka Owned by:
Priority: Should Have Milestone: Alpha 2
Component: Atlas editor Keywords:
Cc: Patch:

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 (1)

wxWidgets_patch (540 bytes ) - added by Karol Trzcionka 14 years ago.

Download all attachments as: .zip

Change History (6)

by Karol Trzcionka, 14 years ago

Attachment: wxWidgets_patch added

comment:1 by Karol Trzcionka, 14 years ago

Component: Game engineAtlas editor

comment:2 by Philip Taylor, 14 years ago

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 by philip, 14 years ago

Resolution: fixed
Status: newclosed

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

comment:4 by (none), 14 years ago

Milestone: Unclassified

Milestone Unclassified deleted

comment:5 by historic_bruno, 12 years ago

Milestone: Alpha 2
Note: See TracTickets for help on using tickets.