#1 Compilation failure

open
nobody
None
5
2007-11-29
2007-11-29
Anonymous
No

System: Fedora Core 8, x86_64 (AMD X2 3800), 1GB RAM, SATA disk.

Basic ./configure with no options specified.

make[2]: Entering directory `/home/comitale/downloads/wxcam-0.9.7/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -g -O2 -MT configure.o -MD -MP -MF ".deps/configure.Tpo" -c -o configure.o configure.cpp; \ then mv -f ".deps/configure.Tpo" ".deps/configure.Po"; else rm -f ".deps/configure.Tpo"; exit 1; fi
/usr/include/wx-2.8/wx/filename.h: In static member function 'static wxChar wxFileName::GetPathSeparator(wxPathFormat)':
/usr/include/wx-2.8/wx/filename.h:393: error: ambiguous overload for 'operator[]' in 'wxFileName::GetPathSeparators(wxPathFormat)()[0u]'
/usr/include/wx-2.8/wx/filename.h:393: note: candidates are: operator[](const wxChar*, long int) <built-in>
/usr/include/wx-2.8/wx/string.h:822: note: wxChar& wxString::operator[](int)
/usr/include/wx-2.8/wx/string.h:824: note: wxChar& wxString::operator[](size_t)
make[2]: *** [configure.o] Error 1
make[2]: Leaving directory `/home/comitale/downloads/wxcam-0.9.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/comitale/downloads/wxcam-0.9.7'
make: *** [all] Error 2

Discussion

  • You need the wx libraries installed