2.4.2.4 fails to compile

Hi,

Any clues on why this is failing?

wxPython-2.4.2.4, wxGTK-2.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0

gcc -fno-strict-aliasing -DNDEBUG -mcpu=athlon-xp -march=athlon-xp -O2 -pipe
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -DSWIG_GLOBAL
-DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.3 -c
src/gtk/controls2.cpp -o build-gtk2/temp.linux-i686-2.3/src/gtk/controls2.o
-I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include
src/gtk/controls2.cpp: In function `PyObject*
   _wrap_wxTreeEvent_SetItem(PyObject*, PyObject*, PyObject*)':
src/gtk/controls2.cpp:6390: error: `SetItem' undeclared (first use this
   function)
src/gtk/controls2.cpp:6390: error: (Each undeclared identifier is reported
only
   once for each function it appears in.)
src/gtk/controls2.cpp: In function `PyObject*
   _wrap_wxTreeEvent_SetOldItem(PyObject*, PyObject*, PyObject*)':
src/gtk/controls2.cpp:6426: error: `SetOldItem' undeclared (first use this
   function)
src/gtk/controls2.cpp: In function `PyObject*
   _wrap_wxTreeEvent_SetPoint(PyObject*, PyObject*, PyObject*)':
src/gtk/controls2.cpp:6462: error: `SetPoint' undeclared (first use this
   function)
src/gtk/controls2.cpp: In function `PyObject*
   _wrap_wxTreeEvent_SetKeyEvent(PyObject*, PyObject*, PyObject*)':
src/gtk/controls2.cpp:6498: error: `SetKeyEvent' undeclared (first use this
   function)
src/gtk/controls2.cpp: In function `PyObject*
   _wrap_wxTreeEvent_SetLabel(PyObject*, PyObject*, PyObject*)':
src/gtk/controls2.cpp:6533: error: `SetLabel' undeclared (first use this
   function)
src/gtk/controls2.cpp: In function `PyObject*
   _wrap_wxTreeEvent_SetEditCanceled(PyObject*, PyObject*, PyObject*)':
src/gtk/controls2.cpp:6568: error: `SetEditCanceled' undeclared (first use
this
   function)
error: command 'gcc' failed with exit status 1

Thanks

Rob Cakebread wrote:

Hi,

Any clues on why this is failing?

wxPython-2.4.2.4, wxGTK-2.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0

gcc -fno-strict-aliasing -DNDEBUG -mcpu=athlon-xp -march=athlon-xp -O2 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Isrc -I/usr/include/python2.3 -c src/gtk/controls2.cpp -o build-gtk2/temp.linux-i686-2.3/src/gtk/controls2.o -I/usr/lib/wx/include/gtk2-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
src/gtk/controls2.cpp: In function `PyObject* _wrap_wxTreeEvent_SetItem(PyObject*, PyObject*, PyObject*)':
src/gtk/controls2.cpp:6390: error: `SetItem' undeclared (first use this function)

You need to use the wxGTK that is included in the wxPythonSrc tarball. There were some last minute additions that I thought had made it into the stock wxGTK 2.4.2 but apparently the tree was tagged sooner than I thought.

···

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