It sounds like GCC 4.7.0 has finally removed the deprecated -mno-cygwin option, but distutils has not yet caught up with it. Either install a slightly older version of MinGW, or edit distutils\cygwinccompiler.py in your Python directory to remove all instances of -mno-cygwin .
|
feedback
|
|
|
| ||||||||
|

本文讨论了使用Cython和MinGW进行编译时遇到的GCC错误:不识别命令行选项'-mno-cygwin'的问题。提供了两种解决方案:安装旧版本的MinGW或者修改Python目录下的distutilscygwinccompiler.py文件。







gcc --versionsays? – Ignacio Vazquez-Abrams May 17 '11 at 18:53