[wxPython] more wxGrid compile problems

I've installed python and wxGTK on RedHat Linux 6.2 with no problems. I've downloaded the latest sources from the CVS server as part of the overall wxWindows module. When I try to compile wxPython, I get the following error:

[root@catatonia wxPython]# ./buildall -b
Makefile created: Makefile
Running: make -f Makefile
g++ -fpic -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD -I. `wx-config --cflags` -I/usr/local/include/python1.5 -I/usr/local/include/python1.5 -I/home/thoth/cvs/wxWindows/utils/wxPython/src -g -O2 -c gtk/windows2.cpp
gtk/windows2.cpp: In function `struct PyObject * _wrap_new_wxGridCell(struct PyObject *, struct PyObject *, struct PyObject *)':
gtk/windows2.cpp:118: `wxGridCell' undeclared (first use this function)
gtk/windows2.cpp:118: (Each undeclared identifier is reported only once
gtk/windows2.cpp:118: for each function it appears in.)
gtk/windows2.cpp:118: `_result' undeclared (first use this function)
gtk/windows2.cpp:127: confused by earlier errors, bailing out
make: *** [windows2.o] Error 1

[root@catatonia wxPython]# pwd
/home/thoth/cvs/wxWindows/utils/wxPython

[root@catatonia wxPython]# find ../.. -name 'grid.h'
../../include/wx/generic/grid.h
../../include/wx/grid.h

[root@catatonia wxPython]# find /usr -name 'grid.h'
/usr/local/include/wx/generic/grid.h
/usr/local/include/wx/grid.h

I've looked at the offending file and it includes wx/grid.h. As you can see above, grid.h seems to be present. Further. grid.h includes gridg.h, which is also present, and it defines wxGridCell on line 312 as a class descended from wxObject. So I don't understand what the compiler is complaining about.

Anyone have any idea what's going on?

steve

···

--
Steven D. Arnold Que quiero sera stevena@permanent.cc
"Fear: The best way out is through." -- Helen Keller

I've looked at the offending file and it includes wx/grid.h. As you can
see above, grid.h seems to be present. Further. grid.h includes gridg.h,
which is also present, and it defines wxGridCell on line 312 as a class
descended from wxObject. So I don't understand what the compiler is
complaining about.

Anyone have any idea what's going on?

There are two wxGrid classes in wxWindows, the old and the new. Current
wxPython sources only uses the new wxgrid, but it looks like your wxWindows
was build with the old one. You'll want to rebuild wxGTK configured
with --enable-newgrid.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!