[python-win32] Error while trying to compile a C module using MinGW
Laurent Gautier
lgautier at gmail.com
Sun May 18 17:55:19 CEST 2008
Hi,
I am experiencing problems while trying to build a C module.
I have been through many explanations of how to setup a Windows XP box
and I studied them carefully, and unsuccessfully, before posting here.
For example, when trying to build the minimal example on wikipedia
http://en.wikibooks.org/wiki/Python_Programming/Extending_with_C#A_minimal_example
I get:
C:\Documents and Settings\Bozo\>python setup.py build -g
running build
running build_ext
building 'hello' extension
creating build\temp.win32-2.5\Debug
gcc -mno-cygwin -mdll -O -Wall -g -IC:\Python25\include
-IC:\Python25\PC -c hellomodule.c -o
build\temp.win32-2.5\Debug\hellomodule.o
error: command 'gcc' failed: No such file or directory
The odd thing is that when I copy/paste the line
gcc -mno-cygwin -mdll -O -Wall -g -IC:\Python25\include
-IC:\Python25\PC -c hellomodule.c -o
build\temp.win32-2.5\Debug\hellomodule.o
into the very same DOS shell that gave the error, that line runs just fine.
Any hint would be greatly appreciated.
Thanks,
Laurent
More information about the python-win32
mailing list