Compilation problem - wxWidgets-2.8.4 --with-odbc

David gewr at seznam.cz
Sat Sep 1 14:02:29 PDT 2007


Hello.

Compilation of the wxWidgets-2.8.4 runs fine for me until :

/home/dave2/wxWidgets-2.8.4/bk-deps g++ -c -o odbcdll_db.o -I.pch/wxprec_odbcdll -D__WXGTK__          -I./src/regex  -DwxUSE_GUI=0 -DWXUSINGDLL -DWXMAKINGDLL_ODBC -fPIC -DPIC -DWX_PRECOMP -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_IODBC_ -I/home/dave2/wxWidgets-2.8.4/lib/wx/include/gtk2-unicode-release-2.8 -I./include -DPNG_NO_MMX_CODE -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -pthread -DORBIT2=1 -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/X11R6/include -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -pthread -DORBIT2=1 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DPNG_NO_MMX_CODE -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -g -O2 -pipe -march=pentium4 ./src/common/db.cpp
./src/common/db.cpp: In member function 'bool wxDb::Open(const wxString&, void*, bool)':
./src/common/db.cpp:871: error: ambiguous overload for 'operator=' in '((wxDb*)this)->wxDb::outConnectionStr = outConnectBuffer'
./include/wx/string.h:676: note: candidates are: wxString& wxString::operator=(int) <near match>
./include/wx/string.h:956: note:                 wxString& wxString::operator=(wxChar) <near match>
./include/wx/string.h:970: note:                 wxString& wxString::operator=(const wxWCharBuffer&) <near match>
./include/wx/string.h:660: note:                 wxString& wxString::operator=(const wxString&) <near match>
./src/common/db.cpp: In member function 'bool wxDb::Open(wxDb*)':
./src/common/db.cpp:976: error: ambiguous overload for 'operator=' in '((wxDb*)this)->wxDb::outConnectionStr = outConnectBuffer'
./include/wx/string.h:676: note: candidates are: wxString& wxString::operator=(int) <near match>
./include/wx/string.h:956: note:                 wxString& wxString::operator=(wxChar) <near match>
./include/wx/string.h:970: note:                 wxString& wxString::operator=(const wxWCharBuffer&) <near match>
./include/wx/string.h:660: note:                 wxString& wxString::operator=(const wxString&) <near match>
make: *** [odbcdll_db.o] Error 1

Gcc is vanilla 4.1.2
ODBC is UnixODBC-2.2.12

Please help me to get the ODBC classes to work.

Thank you.




More information about the wx-users mailing list