delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/03/17:05:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [68.165.4.229]
X-Originating-Email: [rkitover AT hotmail DOT com]
X-Sender: rkitover AT hotmail DOT com
From: "Rafael Kitover" <rkitover AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: <w32api/sql.h> broken?
Date: Wed, 3 Dec 2003 14:04:51 -0800
MIME-Version: 1.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <LAW9-OE55SJjzdgJI7f000020a6@hotmail.com>
X-OriginalArrivalTime: 03 Dec 2003 22:04:53.0539 (UTC) FILETIME=[7ACEAF30:01C3B9E9]

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019