Hello ecforum and Kry,
First of all, thank you for your help.
My original MuleDebug.cpp has the following lines:
26 #include <exception> // Needed for std::exception
27 #include <cxxabi.h> // Needed for __cxxabiv1::
28 #include <csignal> // Needed for raise()
29 #include <cstdio>
30 #include <cwchar> // Needed for fwprintf
31
32 #include "MuleDebug.h" // Interface declaration
33 #include "StringFunctions.h" // Needed for unicode2char
The patch mentioned only adds the line:
3 --- libs/common/MuleDebug.cpp (revision 7421)
4 +++ libs/common/MuleDebug.cpp (working copy)
5 @@ -25,6 +25,7 @@
6
7 #include <cxxabi.h> // Needed for __cxxabiv1::
8 #include <csignal> // Needed for raise()
9 +#include <exception> // Needed for std::exception <-- this line
10
11 #include "MuleDebug.h" // Interface declaration
12 #include "StringFunctions.h" // Needed for unicode2char
that is already there, so it is not needed. Or am I making a mistake?
I tried again, untared aMule and wxGTK, made the modifications you posted and now I get another error:
MuleGifCtrl.cpp: In destructor 'virtual MuleGifCtrl::~MuleGifCtrl()':
MuleGifCtrl.cpp:54: warning: possible problem detected in invocation of delete operator:
MuleGifCtrl.cpp:54: warning: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: warning: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:54: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
MuleGifCtrl.cpp: In member function 'bool MuleGifCtrl::LoadData(const char*, int)':
MuleGifCtrl.cpp:64: warning: possible problem detected in invocation of delete operator:
MuleGifCtrl.cpp:64: warning: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: warning: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:64: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
MuleGifCtrl.cpp:69: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:70: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:70: error: 'wxGIF_OK' was not declared in this scope
MuleGifCtrl.cpp:71: warning: possible problem detected in invocation of delete operator:
MuleGifCtrl.cpp:71: warning: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: warning: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:71: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
MuleGifCtrl.cpp:76: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:77: error: aggregate 'wxImage frame' has incomplete type and cannot be defined
MuleGifCtrl.cpp:78: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp: In member function 'void MuleGifCtrl::Start()':
MuleGifCtrl.cpp:87: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:89: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp: In member function 'virtual wxSize MuleGifCtrl::GetBestSize()':
MuleGifCtrl.cpp:105: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:105: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp: In member function 'void MuleGifCtrl::OnTimer(wxTimerEvent&)':
MuleGifCtrl.cpp:112: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:113: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:115: error: aggregate 'wxImage frame' has incomplete type and cannot be defined
MuleGifCtrl.cpp:116: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:121: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:122: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp: In member function 'void MuleGifCtrl::OnPaint(wxPaintEvent&)':
MuleGifCtrl.cpp:132: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:133: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:137: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
MuleGifCtrl.cpp:137: error: invalid use of undefined type 'struct wxGIFDecoder'
MuleGifCtrl.h:34: error: forward declaration of 'struct wxGIFDecoder'
make[3]: *** [libmuleappgui_a-MuleGifCtrl.o] Error 1
make[3]: Leaving directory `/home/lupe/recolhidos/aMule/aMule-2.1.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/lupe/recolhidos/aMule/aMule-2.1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lupe/recolhidos/aMule/aMule-2.1.3'
make: *** [all] Error 2
I also tried the today's cvs version, but with no success.
MuleDebug.cpp: In function 'wxString get_backtrace(unsigned int)':
MuleDebug.cpp:376: error: ambiguous overload for 'operator+' in 'wxMBConv::cMB2WX(const char*) const(s_file_name) + wxString::Format(const wxChar*, ...)(s_line_number)'
/usr/local/wxGTK-2.8.4/include/wx-2.8/wx/string.h:1421: note: candidates are: wxString operator+(const wxString&, const wxString&)
/usr/local/wxGTK-2.8.4/include/wx-2.8/wx/string.h:1422: note: wxString operator+(const wxString&, wxChar) <near match>
/usr/local/wxGTK-2.8.4/include/wx-2.8/wx/string.h:1423: note: wxString operator+(wxChar, const wxString&) <near match>
/usr/local/wxGTK-2.8.4/include/wx-2.8/wx/string.h:1424: note: wxString operator+(const wxString&, const wxChar*)
/usr/local/wxGTK-2.8.4/include/wx-2.8/wx/string.h:1425: note: wxString operator+(const wxChar*, const wxString&)
make[4]: *** [libmulecommon_a-MuleDebug.o] Error 1
make[4]: Leaving directory `/home/lupe/recolhidos/amule-cvs/src/libs/common'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/lupe/recolhidos/amule-cvs/src/libs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/lupe/recolhidos/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lupe/recolhidos/amule-cvs'
make: *** [all] Error 2
Why is this so difficult to compile?