i'm trying to learn a lot of python on windows and that includes installing several packages, however everytime i invoke python setup.py install i have a problem with -mno -cygwin for gcc.
i've have read already a lot of articles and it seems they want that these individual packages to wait for the fix on their own builds.
can anyone just provide me a gcc version that i can install that still supports -mno -cygwin so i can go on studying the areas i would like to focus?
preguntado el 10 de marzo de 12 a las 08:03
I had this problem too, and this is a bug in the Python code. The only way I found to fix it was to edit the file
In this file you must remove every occurence of
The same goes for GCC installed through MinGW.
I had the same problem which has been fixed by replacing instances of the string "-mno-cygwin" with "" in the
self.set_executables(compiler='gcc -mno-cygwin -O -Wall', compiler_so='gcc -mno-cygwin -mdll -O -Wall', compiler_cxx='g++ -mno-cygwin -O -Wall', linker_exe='gcc -mno-cygwin', linker_so='%s -mno-cygwin %s %s' % (self.linker_dll, shared_option, entry_point))
self.set_executables(compiler='gcc "" -O -Wall', compiler_so='gcc "" -mdll -O -Wall', compiler_cxx='g++ "" -O -Wall', linker_exe='gcc ""', linker_so='%s "" %s %s' % (self.linker_dll, shared_option, entry_point))
What version GCC compiler do you use? You will not get this issue if you use GCC 3.4.4 otherwise you need to replace "-mno-cygwin" string with empty quotes as mentioned above especially for GCC 4.3.7.