/usr/include/wx-2.5/wx/defs.h:528: error: template with C linkage
/usr/include/wx-2.5/wx/string.h:940: error: declaration of C function 'wxString operator+(const wxString&, wxChar)' conflicts with
/usr/include/wx-2.5/wx/string.h:938: error: previous declaration 'wxString operator+(const wxString&, const wxString&)' here
/usr/include/wx-2.5/wx/string.h:942: error: declaration of C function 'wxString operator+(wxChar, const wxString&)' conflicts with
/usr/include/wx-2.5/wx/string.h:940: error: previous declaration 'wxString operator+(const wxString&, wxChar)' here
/usr/include/wx-2.5/wx/string.h:944: error: declaration of C function 'wxString operator+(const wxString&, const wxChar*)' conflicts with
/usr/include/wx-2.5/wx/string.h:942: error: previous declaration 'wxString operator+(wxChar, const wxString&)' here
/usr/include/wx-2.5/wx/string.h:946: error: declaration of C function 'wxString operator+(const wxChar*, const wxString&)' conflicts with
/usr/include/wx-2.5/wx/string.h:944: error: previous declaration 'wxString operator+(const wxString&, const wxChar*)' here
/usr/include/wx-2.5/wx/arrstr.h:219: error: declaration of C function 'wxArrayString::reverse_iterator operator+(int, const wxArrayString::reverse_iterator&)' conflicts with
/usr/include/wx-2.5/wx/string.h:946: error: previous declaration 'wxString operator+(const wxChar*, const wxString&)' here
/usr/include/wx-2.5/wx/arrstr.h:220: error: declaration of C function 'wxArrayString::reverse_iterator operator+(const wxArrayString::reverse_iterator&, int)' conflicts with
/usr/include/wx-2.5/wx/arrstr.h:219: error: previous declaration 'wxArrayString::reverse_iterator operator+(int, const wxArrayString::reverse_iterator&)' here
/usr/include/wx-2.5/wx/string.h: In function 'wxString operator+(const wxWCharBuffer&, const wxString&)':
/usr/include/wx-2.5/wx/string.h:1524: error: declaration of C function 'wxString operator+(const wxWCharBuffer&, const wxString&)' conflicts with
/usr/include/wx-2.5/wx/string.h:1522: error: previous declaration 'wxString operator+(const wxString&, const wxWCharBuffer&)' here
/usr/include/wx-2.5/wx/dynarray.h: At global scope:
/usr/include/wx-2.5/wx/dynarray.h:963: error: declaration of C function 'wxArrayShort::reverse_iterator operator+(int, const wxArrayShort::reverse_iterator&)' conflicts with
/usr/include/wx-2.5/wx/string.h:1524: error: previous declaration 'wxString operator+(const wxWCharBuffer&, const wxString&)' here
/usr/include/wx-2.5/wx/dynarray.h:963: error: declaration of C function 'wxArrayShort::reverse_iterator operator+(const wxArrayShort::reverse_iterator&, int)' conflicts with
/usr/include/wx-2.5/wx/dynarray.h:963: error: previous declaration 'wxArrayShort::reverse_iterator operator+(int, const wxArrayShort::reverse_iterator&)' here
/usr/include/wx-2.5/wx/dynarray.h:963: confused by earlier errors, bailing out
make[2]: *** [common/CMakeFiles/common.dir/base_screen.o] Error 1
make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
make: *** [all] Error 2
(I cut down the output of the middle, it was really too long. Basically, tons of declarations conflicts within string.h)
The strange fact is that I've had to hack the /CMakeModules/FindwxWidgetsCVS.cmake because it apparently contained an error which led the cmake to fail :
# tehboii FOREACH(_upper_opt_name DEBUG STATIC UNICODE UNIVERSAL)
FOREACH(_opt_name DEBUG STATIC UNICODE UNIVERSAL) #tehboii
SET(wxWidgets_DEFAULT_${_upper_opt_name} OFF)
ENDFOREACH(_opt_name)
Ideas, anyone ?