This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

<w32api/sql.h> broken?


Greetings,

Using the latest packages from cygwin, and gcc 3.3.1, and I checked that
sql.h/sqltypes.h are the same in the CVS tree, the following program:

#include <windows.h>
#include <w32api/sql.h>

int main() { return 0; }

Compiled as "gcc try.cc -o try" fails with a bunch of errors like:

In file included from try.cc:2:
/usr/include/w32api/sql.h:343: error: syntax error before `(' token
/usr/include/w32api/sql.h:344: error: syntax error before `(' token
..

If I compile it as a C app, "gcc try.c -o try" it fails with:

In file included from try.c:2:
/usr/include/w32api/sql.h:343: error: syntax error before "SQL_API"
/usr/include/w32api/sql.h:343: error: syntax error before '*' token
/usr/include/w32api/sql.h:344: error: syntax error before "SQL_API"
..

If I try gcc 2.95, it still fails:

$ gcc-2 try.cc -o try 2>&1 | head -30
In file included from try.cc:2:
/usr/include/w32api/sql.h:343: syntax error before `SQLAllocConnect'
/usr/include/w32api/sql.h:344: syntax error before `SQLAllocEnv'
/usr/include/w32api/sql.h:345: syntax error before `SQLAllocStmt'
/usr/include/w32api/sql.h:346: syntax error before `SQLBindCol'
/usr/include/w32api/sql.h:347: syntax error before `SQLCancel'
..

$ gcc-2 try.c -o try
In file included from try.c:2:
/usr/include/w32api/sql.h:343: parse error before `SQL_API'
/usr/include/w32api/sql.h:343: parse error before `*'
/usr/include/w32api/sql.h:343: warning: data definition has no type or
storage class
/usr/include/w32api/sql.h:344: parse error before `SQL_API'
/usr/include/w32api/sql.h:344: parse error before `*'
..

Maybe my test case is too simple and I am forgetting to include
something, (although that would have compiled at least a few months
earlier, AFAIK) or something else is broken, but I couldn't yet figure
it out.

TIA!

-- 
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]