make/compile error with wxWidgets v2.8.11 on Linux
Posted: Sat Sep 24, 2011 5:00 am
I followed the instructions in the file INSTALL.TXT, trying to build MMEX from source. Everything was fine until I ran "make." It failed with an error:
../src/mmex.cpp: In constructor 'mmGUIApp::mmGUIApp()':
../src/mmex.cpp:4469:29: error: 'wxHandleFatalExceptions' was not declared in this scope
make: *** [mmex_mmex.o] Error 1
And I found the associated code was as follows:
/*
wxHandleFatalExceptions implemented for some compilers\platforms only.
MinGW could't find this function, wxWidgets 2.8.10.
P.S. Try for next versions of wxWidgets.
*/
mmGUIApp::mmGUIApp()
{
#ifndef __MINGW32__
wxHandleFatalExceptions(); // tell the library to call OnFatalException()
#endif
}
//----------------------------------------------------------------------------
After I searched the Web, I found a solution. That made "make" exit successfully.
I don't know whether that solution is applicable to all compilers/platforms, so I report it here for reference.
../src/mmex.cpp: In constructor 'mmGUIApp::mmGUIApp()':
../src/mmex.cpp:4469:29: error: 'wxHandleFatalExceptions' was not declared in this scope
make: *** [mmex_mmex.o] Error 1
And I found the associated code was as follows:
/*
wxHandleFatalExceptions implemented for some compilers\platforms only.
MinGW could't find this function, wxWidgets 2.8.10.
P.S. Try for next versions of wxWidgets.
*/
mmGUIApp::mmGUIApp()
{
#ifndef __MINGW32__
wxHandleFatalExceptions(); // tell the library to call OnFatalException()
#endif
}
//----------------------------------------------------------------------------
After I searched the Web, I found a solution. That made "make" exit successfully.
I don't know whether that solution is applicable to all compilers/platforms, so I report it here for reference.