Page 1 of 1

make/compile error with wxWidgets v2.8.11 on Linux

Posted: Sat Sep 24, 2011 5:00 am
by jtmh
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.

Re: make/compile error with wxWidgets v2.8.11 on Linux

Posted: Sun Oct 23, 2011 2:02 pm
by Nikolay
./bootstrap should be runing befare cd relise and ../configure

Re: make/compile error with wxWidgets v2.8.11 on Linux

Posted: Mon Oct 24, 2011 1:29 pm
by jtmh
I installed bakefile, autoconf, and automake packages, and then ran ./bootstrap before cd release and ../configure. But the same error still occurred when I ran make.