I have a problem with python to C code translation and further compilation.
First, I installed MinGW, wrote `setup.py? script and translated python code (simplest helloworld) to C with Cython:
python setup.py build_ext --inplace
Then I tried to compile generated .c file:
gcc.exe helloworld.c -mdll -IC:\Python27\include -IC:\Python27\PC -LC:\Python27\libs -LC:\Python27\PCbuild -lpython27 -lmsvcr90
No error occurred during compilation, but when I tried to launch generated a.exe file, I got the following error:
a.exe is not a valid Win32 application
I have no idea how to fix this problem.
I’m running 32-bit Vista.
P.S. Sorry for my poor English.
See Cython wiki on Embedding Cython for creating standalone executable with Cython