我正在尝试使用cygwin构建一个python(2.7)模块:
D:\Python27\python.exe setup.py build -c cygwin
但是我收到以下错误:
running build
running build_ext
building 'mod' extension
D:\cygwin64\bin\gcc.exe -mcygwin -mdll -O -Wall -ID:\Python27\include -ID:\Python27\PC -c my_mod.c -o build\temp.win32-2.7\Release\my_mod.o
gcc: error: unrecognized command line option '-mcygwin'
error: command 'D:\\cygwin64\\bin\\gcc.exe' failed with exit status 1
这是什么意思?我该如何解决?