wxLua from SVN builds successfully against wxMSW 2.9.3 with USE_EXCEPTIONS=0 (-fno-exceptions) set in wx's config.gcc, but building apps fails with the attached error. Using -fno-exceptions in wxLua's makefile causes no issues.

Additionally, building apps against wx with DEBUG_FLAG = 0 set in the makefile produces a few thousand "undefined reference to wxOnAssert/wxTheAssertHandler" errors, unless -DwxDEBUG_FLAG=0 is added to wxLua's CPPFLAGS.
gccmswu\app_wxluacan_cansim.o:cansim.cpp:(.rdata$_ZTV5MyApp[vtable for 
MyApp]+0x98): undefined reference to 
`wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) 
const'
gccmswu\app_wxluacan_cansim.o:cansim.cpp:(.rdata$_ZTV5MyApp[vtable for 
MyApp]+0x9c): undefined reference to 
`wxAppConsoleBase::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), 
wxEvent&) const'
gccmswu\app_wxluacan_cansim.o:cansim.cpp:(.rdata$_ZTV5MyApp[vtable for 
MyApp]+0xa0): undefined reference to `wxAppConsoleBase::OnUnhandledException()'
gccmswu\app_wxluacan_cansim.o:cansim.cpp:(.rdata$_ZTV5MyApp[vtable for 
MyApp]+0xa4): undefined reference to `wxApp::OnExceptionInMainLoop()'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [..\..\..\bin\gcc_lib\wxluacan.exe] Error 1
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to