Python extension on Windows

David Isal david.isal at wanadoo.fr
Fri Jul 11 09:58:16 EDT 2003


hi all,
i'm new to python and i'm trying to build a python extension on win98,
written in c++, with cygwin.
but i keep having the same error message, and i didnt't find much 
resources on the web about it:
 >g++ -I/cygdrive/c/python22/include -c demomodule.cpp -o demomodule.o

In file included from /cygdrive/c/python22/include/Python.h:62,
                  from demomodule.cpp:1:
/cygdrive/c/python22/include/pyport.h:480:2: #error "LONG_BIT definition 
appears wrong for platform (bad gcc/glibc config?)."

i read that it is mandatory to use Micro$oft visual c++ to build any 
extensions on windows beacuse it's the same compiler used to build 
python for windows.
does anybody has advices about that?
i would rather use cygwin/g++ but i don't know if it's possible or how 
to fix this error message.
thanks in advance,
David.





More information about the Python-list mailing list