Closed clueboy closed 11 years ago
From marunguy on March 08, 2012 07:41:58
This error occurred by mingw. gcc 4.6.x don't accept -mno-cygwin. http://sourceforge.net/tracker/?func=detail&aid=3413937&group_id=200665&atid=974439 To fix this error, remove -mno-cygwin option at Mingw32CCompiler class's init method in C:\python27\Lib\distutils\cygwinccompiler.py file.
From Matthew.Martz on March 08, 2012 07:44:05
Perfect. Thanks!
From Matthew.Martz on March 01, 2012 22:23:29
What steps will reproduce the problem? 1. building with mingw32 on windows What is the expected output? What do you see instead? $ python setup.py build --compiler=mingw32 running build running build_ext extracting FreeTDS cythoning _mssql.pyx to _mssql.c building '_mssql' extension creating build creating build\temp.win32-2.7 creating build\temp.win32-2.7\Release C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Iwin32\freetds\include -IC:\Python27\include -IC:\Python27\PC -c _mssql.c -o build\temp.win32-2.7\Release_mssql.o -DMSDBLIB -Wl,-allow-multiple-definition -Wl,-subsystem,windows-mthreads -mwindows -Wl,--strip-all cc1.exe: error: unrecognized command line option '-mno-cygwin' warning: _mssql.pyx:170:11: Unreachable code error: command 'gcc' failed with exit status 1 What version of the product are you using? On what operating system? latest Please provide any additional information below.
Original issue: http://code.google.com/p/pymssql/issues/detail?id=83