[Pyrex] Pyrex and MSVC
Francesc Alted
falted at openlc.org
Wed Sep 3 10:08:22 CEST 2003
Hi,
I'm a very happy user of Pyrex. It runs like a dream on my Linux box but I'm
having, though, some problems when porting the code to M$ VC++ 6.
The first one is that Pyrex emits this C code that MSVC does not like very
much:
staticforward char *__pyx_f[];
(sorry, I'm on Linux now and I can't paste you the precise message error)
However, if I substitute that by:
staticforward char *__pyx_f[1];
everything goes fine. Might be possible to make Pyrex generate directly the
second form?.
Second problem (I've already reported this one): to deal with integers of 64
bits, I use the "long long" declaration. However the MSVC uses the __int64
form. In order to generate the Windows version of the code I have to
substitute all the appearances of "long long" in the Pyrex-generated C code
to "__int64". Some of you know a better workaround for dealing with this?
Thanks,
--
Francesc Alted
More information about the Pyrex
mailing list