pyrex error

Bryan belred1 at yahoo.com
Sat Aug 2 19:52:50 EDT 2003


"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]
>
> 1) Please don't top-post.
>
> 2) The other way to temporarily solve this problem is to use MINGW
> instead of MSVC.
>
> In the PySQLite sources, I added this snippet on top:
>
> #ifdef _MSC_VER
> #define staticforward extern
> #endif
>
> to make it compilable under MSVC/Python 2.3. *After* #include-ing
> "Pyhton.h" of course.
>
> -- Gerhard
>

ifdef'ing for _MCS_VER won't solve the problem for compiling under 2.2 and
2.3.  is there a way to ifdef this for 2.2 and 2.3 under windows as well as
gcc?

bryan






More information about the Python-list mailing list