pyrex error

John Machin sjmachin at
Mon Aug 4 15:06:09 CEST 2003

On 4 Aug 2003 05:04:20 -0700, sjmachin at (John Machin)

>Gerhard Häring <gh at> wrote in message news:<mailman.1059853685.20382.python-list at>...
>> 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

C:\sw\pyrex\Pyrex-0.8.2\Pyrex\Compiler>grep -n staticforward *.py    code.putln('staticforward char *%s[];' %
Naming.filetable_cname)        code.putln("staticforward PyTypeObject %s;" %

More information about the Python-list mailing list