Matplotlib: Need help fixing weird include error
I'm running RH EL4 x86_64 on a dual Xeon machine. (cool huh? Its not mine, but the university's)I'm trying to install Matplotlib to do some work and I installed all the prereqs it needed. Pygtk2 is one of them. When I run "python setup.py build" it fails when it includes /usr/include/pygtk-2.0/pygobject.h
In file included from src/_gtkagg.cpp:10:
/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' before "typename"
/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' before "typename"
error: command 'gcc' failed with exit status 1
Here is a snip of the offending code:
struct _PyGObject_Functions {
......
PyObject *(*enum_add)(PyObject *module,
const char *typename,
const char *strip_prefix,
GType gtype);
PyObject* (*enum_from_gtype)(GType gtype, int value);
PyTypeObject *flags_type;
PyObject *(*flags_add)(PyObject *module,
const char *typename,
const char *strip_prefix,
GType gtype);
....
};
I don't know why it would need a , or ... before the pointer.
Any Ideas?
David
|