python - Compile cython module works in 32bits but not in 64 bits [Windows] -


i have cython module (using numpy) compiles , works in 32 bits doing following thing:

c:\python27_x86\scripts\cython.exe orderc.pyx c:\mingw\bin\gcc.exe -mdll -o -wall -ic:\python27_x86\lib\site-packages\numpy\core\include -ic:\python27_x86\include -ic:\python27_x86\pc -c orderc.c -o orderc.o c:\mingw\bin\gcc.exe -shared -s orderc.o -lc:\python27_x86\libs -lc:\python27_x86\pcbuild -lpython27 -lmsvcr90 -o orderc.pyd 

but not working when trying compile equivalent in 64 bits:

c:\python27\scripts\cython.exe orderc.pyx c:\mingw\bin\gcc.exe -mdll -o -wall -ic:\python27\lib\site-packages\numpy\core\include -ic:\python27\include -ic:\python27\pc -c orderc.c -o orderc.o c:\mingw\bin\gcc.exe -shared -s orderc.o -lc:\python27\libs -lc:\python27\pcbuild -lpython27 -lmsvcr90 -o orderc.pyd 

actually, third line fails , gives lof of errors:

orderc.o:orderc.c:(.text+0x43f2c): undefined reference `_imp__pyexc_typeerror' ... orderc.o:orderc.c:(.text+0x603a9): undefined reference `_imp__pytype_ready' c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: orderc.o: bad reloc address 0x0 in section `.data' 

collect2.exe: error: ld returned 1 exit status

is because mingw compiling 32 bits ? me bit please ?

thanks


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -