我正在尝试在win7 64位中使用mingw (64位)编译一个带有cython的python扩展。
我正在使用Python2.6 (Active Python2.6.6)和足够的distutils.cfg文件(将mingw设置为编译器)
在执行时
> C:\Python26\programas\Cython>python setup.py build_ext --inplace
我收到一个错误,说gcc没有-mno-cygwin选项:
> C:\Python26\programas\Cython>python setup.py build_ext --inplace
running build_ext
skipping 'hello2.c' Cython extension (up-to-date)
building 'hello2' extension
C:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python26\include -IC:\Python26\PC -c hello2.c -o build\temp.win-amd64-2.6\Release\hello2.o
gcc: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1
gcc是:
C:\>gcc --version
gcc (GCC) 4.7.0 20110430 (experimental)
Copyright (C) 2011 Free Software Foundation, Inc.
我怎么才能修复它呢?
https://stackoverflow.com/questions/6034390
复制相似问题