mingw下编译pycrypto出现-mno-cygwin错误

唉,windows下装东西真麻烦。

在PYTHON安装目录,找到/lib/distutils/cygwinccompiler.py,我记得有3-4处,把-mno-cygwin,删除,就行了。

注意!删除cygwinccompiler.pyc文件

http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o

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



你可能感兴趣的:(mingw下编译pycrypto出现-mno-cygwin错误)