This code in cxx_extensions.cxx appears to (incorrectly) check only the
major version of Python (I believe these two features were added in
Python 2.1, not 2.0):
#if PY_MAJOR_VERSION < 2
table->tp_xxx7 =3D 0L;
table->tp_xxx8 =3D 0L;
#else
table->tp_richcompare =3D 0;
table->tp_weaklistoffset =3D 0;
#endif
I can't test this, but probably it should read something like
#if PY_MAJOR_VERSION < 2 || PY_MINOR_VERSION < 1
Dave
> -----Original Message-----
> From: vis...@li...=20
> [mailto:vis...@li...] On=20
> Behalf Of Herr Wagner
> Sent: Saturday, July 14, 2001 7:48 AM
> To: vis...@li...
> Subject: [Visualpython-users] Problems with current version
>=20
>=20
> I have used the most recent version of vpython.=20
> Unfortunately, a make doesn't work.
>=20
> This is the message produced by make.
>=20
> g++ -O3 -I. -I./CXX/Include -I/usr/include/python2.0=20
> g++ -I/usr/include/python2.0/Numeric `gtk-config --cflags gtk=20
> gthread` -w -c CXX/Src/cxx_extensions.cxx -o CXX/Src/cxx_extensions.o
> CXX/Src/cxx_extensions.cxx: In method=20
> `Py::PythonType::PythonType(unsigned int,
> int)':
> CXX/Src/cxx_extensions.cxx:246: `struct _typeobject' has no=20
> member named `tp_richcompare'
> CXX/Src/cxx_extensions.cxx:247: `struct _typeobject' has no=20
> member named `tp_weaklistoffset'
> make: *** [CXX/Src/cxx_extensions.o] Error 1
>=20
> Is there anyone who can help ?
>=20
> Thanks in advance.
>=20
> Nils=20
> --=20
>=20
> Die sch=F6nen Seiten des Urlaubs bei Libri.de: Sonnige B=FCcher=20
> portofrei bestellen: http://www.libri.de/content/urlaub.html
>=20
> _______________________________________________
> Visualpython-users mailing list=20
> Vis...@li...
> http://lists.sourceforge.net/lists/listinfo/visualpython-users
>=20
|