我正在尝试使用mingw(64位)在win 7 64位中使用cython编译python扩展。我正在使用Python 2.6(Active Python 2.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 --inplacerunning build_extskipping 'hello2.c' Cython extension (up-to-date)building 'hello2' extensionC:\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.ogcc: error: unrecognized command line option '-mno-cygwin'error: command 'gcc' failed with exit status 1gcc是:C:\>gcc --versiongcc (GCC) 4.7.0 20110430 (experimental)Copyright (C) 2011 Free Software Foundation, Inc.我该如何解决?
添加回答
举报
0/150
提交
取消