aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: error: `wxHandleFatalExceptions' was not declared in this scope  (Read 3002 times)

woutermense

  • Full Member
  • ***
  • Karma: 18
  • Offline Offline
  • Posts: 154

with configure options:
Code: [Select]
./configure --with-crypto-prefix=/mingw --disable-monolithic --enable-amule-deamon \
  --enable-amulecmd --enable-amule-gui --enable-wxcas --disable-ed2k --disable-upnp \
  --disable-xas --disable-nls --enable-optimize --enable-profile --enable-static


  Configure script has finished system check.

  Configured aMule SVN for 'i686-pc-mingw32'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/local
  Should aMule be compiled with i18n support?                no
  Should aMule be compiled in debug mode?                    yes
  Should aMule be compiled with profiling?                   yes
  Should aMule be compiled with optimizations?               yes
  Should aMule be compiled with UPnP support?                no
  Should aMule be compiled with IP2country support?          no
  Should aMule monolithic application be built?              no
  Should aMule daemon version be built?                      no
  Should aMule remote gui be built? (EXPERIMENTAL)           yes
  Crypto++ library/headers style?                            installed

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 yes

  **** aMule WebServer ****
  Should aMule WebServer be built?                           no

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  no

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              yes
  Should xas XChat2 plugin be installed?                     no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.8.8 (msw,static)
                                       crypto++              5.5.2 (installed, in /mingw)
                                       zlib                  1.2.3


Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DNOMINMAX -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/usr/local/lib/wx/include/msw-unicode-debug-static-2.8 -I/usr/local/include/wx-2.8 -D__WXDEBUG__ -D__WXMSW__ -DwxUSE_GUI=0 -I./libs -Ilibs -I./include -I/mingw/include -D__WEAK_CRYPTO__ -DEC_REMOTE -DECSOCKET_USE_EVENTS=0  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -O2 -pg -mthreads   -MT amulecmd-ExternalConnector.o -MD -MP -MF ".deps/amulecmd-ExternalConnector.Tpo" -c -o amulecmd-ExternalConnector.o `test -f 'ExternalConnector.cpp' || echo './'`ExternalConnector.cpp; \
then mv -f ".deps/amulecmd-ExternalConnector.Tpo" ".deps/amulecmd-ExternalConnector.Po"; else rm -f ".deps/amulecmd-ExternalConnector.Tpo"; exit 1; fi
In file included from C:/msys/1.0/local/include/wx-2.8/wx/filefn.h:29,
                 from C:/msys/1.0/local/include/wx-2.8/wx/file.h:21,
                 from C:/msys/1.0/local/include/wx-2.8/wx/textfile.h:23,
                 from C:/msys/1.0/local/include/wx-2.8/wx/fileconf.h:20,
                 from ./libs/ec/cpp/ECFileConfig.h:28,
                 from ExternalConnector.cpp:62:
c:/mingw/include/sys/stat.h:160: warning: `int _stat(const char*, _stat*)' hides constructor for `struct _stat'
c:/mingw/include/sys/stat.h:167: warning: `int stat(const char*, stat*)' hides constructor for `struct stat'
c:/mingw/include/sys/stat.h:173: warning: `int _stati64(const char*, _stati64*)' hides constructor for `struct _stati64'
ExternalConnector.cpp: In member function `virtual bool CaMuleExternalConnector::OnInit()':
ExternalConnector.cpp:569: error: `wxHandleFatalExceptions' was not declared in this scope
ExternalConnector.cpp:569: warning: unused variable 'wxHandleFatalExceptions'
make[3]: *** [amulecmd-ExternalConnector.o] Error 1
make[3]: Leaving directory `/home/Wouter/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Wouter/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Wouter/amule-cvs'
make: *** [all] Error 2
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3764
  • Engines screaming
Re: error: `wxHandleFatalExceptions' was not declared in this scope
« Reply #1 on: August 20, 2008, 04:42:30 PM »

What are you trying to do ? The daemon doesn't compile on Windows (and you have misspelled the option for it). And I'm not sure about amulecmd, if it's supposed to work on Windows. It doesn't make much sense without amuled.
Also, I suggest you use MSVC for Windows.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 165
  • Offline Offline
  • Posts: 2674
Re: error: `wxHandleFatalExceptions' was not declared in this scope
« Reply #2 on: August 20, 2008, 05:02:47 PM »

Fix will be in next tarball.
Logged
concordia cum veritate

woutermense

  • Full Member
  • ***
  • Karma: 18
  • Offline Offline
  • Posts: 154
Re: error: `wxHandleFatalExceptions' was not declared in this scope
« Reply #3 on: August 20, 2008, 05:49:24 PM »

Some background: I am trying to compile just the amule-gui and amule-cmd, for windows. This is for 6 users who use it to connect to a server which runs the daemon and the webinterface. Each user has it's own category. amule-cmd is used for integrating ed2k-links into the browser, amule-gui is used for management of the downloads. Downloaded files are stored on a samba share.

The --enable-daemon option is indeed wrong here, my bad. But amulecmd should compile, it has worked befor for me. I do not have MSVC.

I thought maybe the --enable-optimize --enable-profile --enable-static options were the problem, but that't not a fix either.

Code: [Select]
./configure --with-crypto-prefix=/mingw --disable-monolithic --enable-amulecmd \
  --enable-amule-gui --enable-wxcas --disable-ed2k --disable-upnp   --disable-xas \
  --disable-nls

same error:
Code: [Select]
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -DNOMINMAX -D__DEBUG__ -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -DUSE_WX_EXTENSIONS -I/usr/local/lib/wx/include/msw-unicode-debug-static-2.8 -I/usr/local/include/wx-2.8 -D__WXDEBUG__ -D__WXMSW__ -DwxUSE_GUI=0 -I./libs -Ilibs -I./include -I/mingw/include -D__WEAK_CRYPTO__ -DEC_REMOTE -DECSOCKET_USE_EVENTS=0  -g -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0 -mthreads   -MT amulecmd-ExternalConnector.o -MD -MP -MF ".deps/amulecmd-ExternalConnector.Tpo" -c -o amulecmd-ExternalConnector.o `test -f 'ExternalConnector.cpp' || echo './'`ExternalConnector.cpp; \
then mv -f ".deps/amulecmd-ExternalConnector.Tpo" ".deps/amulecmd-ExternalConnector.Po"; else rm -f ".deps/amulecmd-ExternalConnector.Tpo"; exit 1; fi
In file included from C:/msys/1.0/local/include/wx-2.8/wx/filefn.h:29,
                 from C:/msys/1.0/local/include/wx-2.8/wx/file.h:21,
                 from C:/msys/1.0/local/include/wx-2.8/wx/textfile.h:23,
                 from C:/msys/1.0/local/include/wx-2.8/wx/fileconf.h:20,
                 from ./libs/ec/cpp/ECFileConfig.h:28,
                 from ExternalConnector.cpp:62:
c:/mingw/include/sys/stat.h:160: warning: `int _stat(const char*, _stat*)' hides constructor for `struct _stat'
c:/mingw/include/sys/stat.h:167: warning: `int stat(const char*, stat*)' hides constructor for `struct stat'
c:/mingw/include/sys/stat.h:173: warning: `int _stati64(const char*, _stati64*)' hides constructor for `struct _stati64'
ExternalConnector.cpp: In member function `virtual bool CaMuleExternalConnector::OnInit()':
ExternalConnector.cpp:569: error: `wxHandleFatalExceptions' was not declared in this scope
ExternalConnector.cpp:569: warning: unused variable 'wxHandleFatalExceptions'
make[3]: *** [amulecmd-ExternalConnector.o] Error 1
make[3]: Leaving directory `/home/Wouter/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Wouter/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Wouter/amule-cvs'
make: *** [all] Error 2

edit:
Ah, ok GonoszTopi
« Last Edit: August 20, 2008, 05:51:12 PM by woutermense »
Logged