compilation error

Hi!

I´m getting this compilation error for wxPython 2.4.2.4:

gcc -DNDEBUG -D_FILE_OFFSET_BITS=64 -DHAVE_LARGEFILE_SUPPORT -O2 -march=i486 -mcpu=i686 -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/frames.cpp -o build/temp.linux-i686-2.2/src/gtk/frames.o -I/usr/local/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
src/gtk/frames.cpp: In function `struct PyObject * _wrap_wxTopLevelWindow_SetShape(PyObject *, PyObject *, PyObject *)':
src/gtk/frames.cpp:716: no matching function for call to `wxTopLevelWindow::SetShape (wxRegion &)'
error: command 'gcc' failed with exit status 1

Can anybody help?

Thanks a lot!

Mike

Mike wrote:

Hi!

I´m getting this compilation error for wxPython 2.4.2.4:

gcc -DNDEBUG -D_FILE_OFFSET_BITS=64 -DHAVE_LARGEFILE_SUPPORT -O2 -march=i486 -mcpu=i686 -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.2 -c src/gtk/frames.cpp -o build/temp.linux-i686-2.2/src/gtk/frames.o -I/usr/local/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
src/gtk/frames.cpp: In function `struct PyObject * _wrap_wxTopLevelWindow_SetShape(PyObject *, PyObject *, PyObject *)':
src/gtk/frames.cpp:716: no matching function for call to `wxTopLevelWindow::SetShape (wxRegion &)'
error: command 'gcc' failed with exit status 1

Can anybody help?

Looks like you are using an incorrect version of wxGTK, or at least the wrong header files. What do you get for "wx-config --version" ?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!