wxMotif compilation broken due to string changes

Robert Roebling robert at roebling.de
Sat Dec 1 04:50:40 PST 2007


  Hi,

I was testing if my DC changes have broken wxMotif, but compilation
is broken due to string problem for wxCmnLineArgs. This also makes
me wonder if anyone is still using wxMotif - or even maintaing it.
Anyways, here is the error message

/home/robert/wxSVN/TRUNK/motif/bk-deps g++ -c -o coredll_app.o
-I.pch/wxprec_coredll -D__WXMOTIF__     -DWXBUILDING
-I/home/robert/wxSVN/TRUNK/motif/src/tiff/libtiff -I../src/tiff/libtiff
-I../src/regex  -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC
-DPIC -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
-DWX_PRECOMP -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/home/robert/wxSVN/TRUNK/motif/lib/wx/include/motif-unicode-release-2.9 -I../include -pthread -O0 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden ../src/motif/app.cpp
../src/motif/app.cpp: In constructor ‘wxApp::wxApp()’:
../src/motif/app.cpp:147: error: no match for ‘operator=’ in
‘((wxApp*)this)->wxApp::<anonymous>.wxAppBase::<anonymous>.wxAppConsole::<anonymous>.wxAppConsoleBase::argv = 0’
../include/wx/cmdargs.h:139: note: candidates are: wxCmdLineArgsArray&
wxCmdLineArgsArray::operator=(const wxCmdLineArgsArray&)
../src/motif/app.cpp: In member function ‘virtual bool
wxApp::OnInitGui()’:
../src/motif/app.cpp:299: error: ambiguous overload for ‘operator+’ in
‘((wxApp*)this)->wxApp::<anonymous>.wxAppBase::<anonymous>.wxAppConsole::<anonymous>.wxAppConsoleBase::argv + i’
../src/motif/app.cpp:299: note: candidates are: operator+(char**, int)
<built-in>
../src/motif/app.cpp:299: note:                 operator+(wchar_t**,
int) <built-in>
../src/motif/app.cpp:299: note:                 operator+(int, int)
<built-in>
../include/wx/longlong.h:1060: note:                 wxULongLong
operator+(long unsigned int, const wxULongLong&)
../include/wx/longlong.h:1047: note:                 wxLongLong operator
+(long int, const wxLongLong&)
../include/wx/string.h:2700: note:                 wxString operator
+(wchar_t, const wxString&)
../include/wx/string.h:2698: note:                 wxString operator
+(char, const wxString&)
../src/motif/app.cpp:299: error: ambiguous overload for ‘operator+’ in
‘((wxApp*)this)->wxApp::<anonymous>.wxAppBase::<anonymous>.wxAppConsole::<anonymous>.wxAppConsoleBase::argv + i’
../src/motif/app.cpp:299: note: candidates are: operator+(char**, int)
<built-in>
../src/motif/app.cpp:299: note:                 operator+(wchar_t**,
int) <built-in>
../src/motif/app.cpp:299: note:                 operator+(int, int)
<built-in>
../include/wx/longlong.h:1060: note:                 wxULongLong
operator+(long unsigned int, const wxULongLong&)
../include/wx/longlong.h:1047: note:                 wxLongLong operator
+(long int, const wxLongLong&)
../include/wx/string.h:2700: note:                 wxString operator
+(wchar_t, const wxString&)
../include/wx/string.h:2698: note:                 wxString operator
+(char, const wxString&)
../src/motif/app.cpp:299: error: ambiguous overload for ‘operator*’ in
‘*((wxApp*)this)->wxApp::<anonymous>.wxAppBase::<anonymous>.wxAppConsole::<anonymous>.wxAppConsoleBase::argv’
../src/motif/app.cpp:299: note: candidates are: operator*(char**)
<built-in>
../src/motif/app.cpp:299: note:                 operator*(wchar_t**)
<built-in>






More information about the wx-dev mailing list