danishabdullah / pyodbc

Automatically exported from code.google.com/p/pyodbc
Other
0 stars 0 forks source link

Build fails under Cygwin #242

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by oesuntha...@gmail.com on 1 Mar 2012 at 1:57

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in 3.0.7-beta07

Thanks.

Original comment by mkleehammer on 27 Sep 2012 at 8:32