My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 242: Build fails under Cygwin
1 person starred this issue and may be notified of changes. Back to list
Status:  Complete
Owner:  ----
Closed:  Sep 2012


 
Reported by oesuntha...@gmail.com, Feb 29, 2012
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.
pyodbc.h
3.7 KB   View   Download
Sep 27, 2012
Project Member #1 mkleehammer
Fixed in 3.0.7-beta07

Thanks.

Status: Complete

Powered by Google Project Hosting