make/compile error with wxWidgets v2.8.11 on Linux

Money Manager Ex Development related posts
(http://github.moneymanagerex.org/)

Moderator: Renato

Post Reply
jtmh
New MMEX User
Posts: 18
Joined: Tue Aug 16, 2011 4:08 pm
Are you a spam bot?: No
Location: Taiwan

make/compile error with wxWidgets v2.8.11 on Linux

Post 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.
Nikolay
MMEX Developer
Posts: 1403
Joined: Sat Dec 06, 2008 2:27 pm
Are you a spam bot?: No
Location: Sankt-Petersburg, Russia

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

Post by Nikolay »

./bootstrap should be runing befare cd relise and ../configure
jtmh
New MMEX User
Posts: 18
Joined: Tue Aug 16, 2011 4:08 pm
Are you a spam bot?: No
Location: Taiwan

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

Post 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.
Post Reply