| Issue 242: | Build fails under Cygwin | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Download code via git. 2. Open a Cygwin terminal window. 3. Using standard build/install command: python setup.py build install What is the expected output? What do you see instead? Expect the script to build and install the pyodbc. But instead, the build failed with error messages regarding type errors in the sql*.h files. What version of the product are you using? On what operating system? Windows XP Professional, SP3 Cygwin 1.7.11 python 2.6.7 gcc 4.5.3 Please provide any additional information below. It appears that Cygwin requires windows.h be included in pyodbc.h file. When the following code is inserted into the file at line 48 (just prior to the #include <sql.h> line): #ifdef __CYGWIN__ #include <windows.h> #endif Executing the same command as above to build & install works without any issues.
Sep 27, 2012
Project Member
#1
mkleehammer
Status:
Complete
|