<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal">I’m trying to build the pycrypto libarary. I browse to the folder where my files are extracted an type ‘make’. Things progress along just fine for quite a few minutes when suddenly I get this error and the process halts:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Cc1.exe: error: unrecognized command line option '-mno-cygwin'<u></u><u></u></p><p class="MsoNormal">Error: command ‘gcc’ failed with exit status 1<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’m working in MinGW (not cygwin). Can anybody suggest how to fix this? Thanks.</p></div></div></blockquote><div><br>It is a known issue of distutils.<br><br>Edit <code>C:\Python2.7.1\Lib\distutils\cygwincompiler.py </code>and remove '-mno-cygwin' everywhere.<br>
<br>See here:<br><br><a href="http://www.secker.nl/2012/03/08/setup-python-2-7-2-and-mingw-on-windows-xp/">http://www.secker.nl/2012/03/08/setup-python-2-7-2-and-mingw-on-windows-xp/</a><br><br><code></code> </div></div>