sjmachin at lexicon.net
Mon Aug 4 15:06:09 CEST 2003
On 4 Aug 2003 05:04:20 -0700, sjmachin at lexicon.net (John Machin)
>Gerhard Häring <gh at ghaering.de> wrote in message news:<mailman.1059853685.20382.python-list at python.org>...
>> Bryan wrote:
>> > [PyRex produces code using staticforward that won't work in the combination Python 2.3/MSVC]
>> 2) The other way to temporarily solve this problem is to use MINGW
>> instead of MSVC.
>*One* other way, not *the* other way. If the OP wanted to muck about
>downloading and becoming familiar with a different compiler, he could
>also try the free Borland compiler.
>And here is a third, easier other way: fiddle with your
>....\include\object.h so that it defines staticforward as extern.
and here is a fourth easier other way: fiddle with Pyrex itself:
change staticforward to extern in line 169 of Nodes.py
C:\sw\pyrex\Pyrex-0.8.2\Pyrex\Compiler>grep -n staticforward *.py
Nodes.py:169: code.putln('staticforward char *%s;' %
Nodes.py:263: code.putln("staticforward PyTypeObject %s;" %
More information about the Python-list