Das Kompilieren mit Cython und Mingw erzeugt gcc: error: unerkannte Kommandozeilenoption '-mno-cygwin'

Ich versuche zu kompilieren, eine python-Erweiterung mit cython in win 7 64-bit mit mingw (64-bit).

Ich arbeite mit Python 2.6 (Active Python 2.6.6) und mit der angemessenen distutils.cfg-Datei (Einstellung mingw als compiler)

Beim ausführen

> C:\Python26\programas\Cython>python setup.py build_ext --inplace

Bekomme ich eine Fehlermeldung, dass gcc nicht -mno-cygwin-option:

> C:\Python26\programas\Cython>python setup.py build_ext --inplace
running build_ext
skipping 'hello2.c' Cython extension (up-to-date)
building 'hello2' extension
C:\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.o
gcc: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1

gcc ist:

C:\>gcc --version
gcc (GCC) 4.7.0 20110430 (experimental)
Copyright (C) 2011 Free Software Foundation, Inc.

Wie könnte ich es beheben?

InformationsquelleAutor der Frage joaquin | 2011-05-17

Schreibe einen Kommentar