Looks like /usr/include/w32api/sql.h does an #include <sqltypes.h>, which if you have postgresql installed, will read postgres's version when building under cygwin.
Any chance the postgres /usr/include/sqltypes.h could be moved to /usr/include/postgresql/sqltypes.h or something along those lines? In any case, the workaround is: #include <windows.h> #ifndef ODBCVER # define ODBCVER 0x0351 #endif #include <w32api/sqltypes.h> #include <sql.h> -- Rafael -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/