aMule Bug Tracker - aMule
View Issue Details
0001724aMuleMiscpublic2012-08-10 17:082014-09-15 13:53
mr_hyde 
 
normalminoralways
resolvedfixed 
SVN 
2.3.2 
10803
Any
0001724: MAC OS SnowLeopard Universal Binary: unable to compile with gcc 4.0, SVN rev 10792
Using gcc 4.0, SVN rev.10792 build fails due to a missing include in src/libs/common/Format.h

The problem is related to method


    CFormat& operator%(const std::string& value) { return this->operator%<const wxString&>(wxString(value.c_str(), wxConvUTF8)); }

which refers to std::string


To fix this problem I simply added in src/libs/common/Format.h

#include <string>

at the beginning of file (just after the #include <list>)
Reported error by compiler is the following:


Format.h: In member function ‘CFormat& CFormat::operator%(const std::string&)’:
Format.h:143: error: invalid use of undefined type ‘const struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/stringfwd.h:56: error: declaration of ‘const struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’
No tags attached.
Issue History
2012-08-10 17:08mr_hydeNew Issue
2012-08-10 17:08mr_hydeOperating System => Any
2012-08-10 17:13mr_hydeNote Added: 0003631
2014-09-15 13:53GonoszTopiFixed in Revision => 10803
2014-09-15 13:53GonoszTopiStatusnew => resolved
2014-09-15 13:53GonoszTopiResolutionopen => fixed
2014-09-15 13:53GonoszTopiFixed in Version => 2.3.2

Notes
(0003631)
mr_hyde   
2012-08-10 17:13   
I forgot to say that I was building using wxWidgets 2.8.12.