Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <008901c0c8b3$63fb7920$b77a6f87@comneti.com> From: "M.Manikandan" To: Subject: dll ver:1.1.8: sqltypes.h bug ( win-98) --- help! Date: Thu, 19 Apr 2001 15:00:33 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0086_01C0C8E1.7BDDBCA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 ------=_NextPart_000_0086_01C0C8E1.7BDDBCA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, While compiling a c program ( in win-98 platform) using gcc, i got the following error message. my C program will just connect to a database & display success message if connected successfully. " In file included from /usr/include/w32api/sql.h:9, from get.c:1: /usr/include/w32api/sqltypes.h:14: parse error before `UDWORD' /usr/include/w32api/sqltypes.h:14: warning: data definition has no type or stora ge class /usr/include/w32api/sqltypes.h:15: parse error before `UWORD' /usr/include/w32api/sqltypes.h:15: warning: data definition has no type or stora ge class /usr/include/w32api/sqltypes.h:21: parse error before `PTR' /usr/include/w32api/sqltypes.h:21: warning: data definition has no type or stora ge class /usr/include/w32api/sqltypes.h:22: parse error before `HENV' /usr/include/w32api/sqltypes.h:22: warning: data definition has no type or stora ge class /usr/include/w32api/sqltypes.h:23: parse error before `HDBC' /usr/include/w32api/sqltypes.h:23: warning: data definition has no type or stora ge class /usr/include/w32api/sqltypes.h:24: parse error before `HSTMT' /usr/include/w32api/sqltypes.h:24: warning: data definition has no type or stora ge class ......... ......." i also enclosed cygcheck command's output & my c code for your reference. Thanks in advance, Regards, manikandan.m ------=_NextPart_000_0086_01C0C8E1.7BDDBCA0 Content-Type: application/octet-stream; name="cygchk.out" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygchk.out" Cygnus Win95/NT Configuration Diagnostics Current System Time: Thu Apr 19 14:37:17 2001 Win9X Ver 4.10 build 67766446 A=20 Path: /cygdrive/c/ORAWIN95/BIN /cygdrive/c/WINDOWS/COMMAND /cygdrive/c/JDK1.2.1/BIN /cygdrive/c/WINDOWS /cygdrive/c/JSDK2.0/BIN /cygdrive/c/J2EE/BIN /cygdrive/c/IMNNQ_95 /cygdrive/c/PROGRA~1/VIM /cygdrive/c/TURBOC/ /usr/bin /cygdrive/c/MYSQL/BIN . SysDir: C:\WINDOWS\SYSTEM WinDir: C:\WINDOWS !C: =3D `C:\cygwin' TMP =3D `/cygdrive/c/windows/TEMP' TEMP =3D `/cygdrive/c/windows/TEMP' PROMPT =3D `$p$g' WINBOOTDIR =3D `C:\WINDOWS' COMSPEC =3D `C:\COMMAND.COM' WIN32DMIPATH =3D `C:\DMI\ ' IMNINST =3D `help' IMNINSTSRV =3D `C:\IMNNQ_95 ' CLASSPATH =3D = `c:\jsdk2.0\lib\jsdk.jar;.;c:\j2ee\lib\jsdk.jar;c:\samp\classes12.zip;c:\= weblogic\classes;c:\weblogic\lib;c:\weblogic\lib\weblogicaux.jar;c:\j2ee\= lib\j2ee.jar;c:\jdbc6_~1.jar;c:\jdbcINFor\lib\IFXJDBC~g.jar;c:\jdbcINFor\= lib\IFXJDBC.jar; ' J2EE_HOME =3D `c:\j2ee ' JAVA_HOME =3D `c:\jdk1.2.1 ' WINDIR =3D `C:\WINDOWS' SNDSCAPE =3D `C:\WINDOWS' BLASTER =3D `A220 I7 D1 T2 ' CMDLINE =3D `cygcheck -s -v -r ' TERM =3D `cygwin' TZ =3D `IST-5:30' HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Menu= Order\Start Menu\&Programs\Cygnus Solutions (default) =3D (unsupported type) HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) =3D `/cygdrive' cygdrive flags =3D 0x00000022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\Software\Cygnus Solutions HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/ (default) =3D `C:/cygwin' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) =3D `C:/cygwin/bin' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) =3D `C:/cygwin/lib' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\Program Options a: fd N/A N/A =20 c: hd FAT32 6130Mb 44% CP UN =20 d: cd N/A N/A =20 C:\cygwin\bin /usr/bin system binmode C:\cygwin\lib /usr/lib system binmode C:\cygwin / system binmode Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cpp.exe Found: c:\WINDOWS\COMMAND\find.exe Found: C:\cygwin\bin\find.exe Warning: c:\WINDOWS\COMMAND\find.exe hides C:\cygwin\bin\find.exe Found: C:\cygwin\bin\gcc.exe Found: C:\cygwin\bin\gdb.exe Found: C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\sh.exe 615k 2001/01/31 C:\WINDOWS\SYSTEM\cygwin1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygwin1.dll" v0.0 ts=3D2001/1/31 20:38 Cygwin DLL version info: dll major: 1001 dll minor: 8 dll epoch: 19 dll bad signal mask: 19005 dll old termios: 5 dll malloc env: 28 api major: 0 api minor: 34 shared data: 3 dll identifier: cygwin1 mount registry: 2 cygnus registry name: Cygnus Solutions cygwin registry name: Cygwin program options name: Program Options cygwin mount registry name: mounts v2 cygdrive flags: cygdrive flags cygdrive prefix: cygdrive prefix cygdrive default prefix:=20 build date: Wed Jan 31 10:08:38 EST 2001 shared id: cygwin1S3 56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygbz21.0.dll" v0.0 ts=3D2000/11/21 5:23 390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtcl80.dll" v0.0 ts=3D2000/11/26 7:09 5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtclreg80.dll" v0.0 ts=3D2000/11/26 7:09 81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygitcl30.dll" v0.0 ts=3D2000/11/26 7:13 35k 2000/12/05 C:\cygwin\bin\cygitk30.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygitk30.dll" v0.0 ts=3D2000/11/26 7:13 623k 2000/12/05 C:\cygwin\bin\cygtk80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtk80.dll" v0.0 ts=3D2000/11/26 7:13 18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cyggdbm.dll" v0.0 ts=3D2000/10/23 7:56 14k 2000/10/23 C:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygintl.dll" v0.0 ts=3D2000/10/24 0:32 45k 2000/10/22 C:\cygwin\bin\cygjbig1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygjbig1.dll" v0.0 ts=3D2000/10/23 4:36 119k 2000/10/23 C:\cygwin\bin\cygjpeg6b.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygjpeg6b.dll" v0.0 ts=3D2000/10/23 6:28 163k 2001/02/03 C:\cygwin\bin\cygpng2.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpng2.dll" v0.0 ts=3D2001/2/4 2:51 82k 2001/01/21 C:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygform5.dll" v0.0 ts=3D2001/1/22 2:09 53k 2001/01/21 C:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygmenu5.dll" v0.0 ts=3D2001/1/22 2:09 414k 2001/01/21 C:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses++5.dll" v0.0 ts=3D2001/1/22 2:10 299k 2001/01/21 C:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses5.dll" v0.0 ts=3D2001/1/22 2:08 34k 2001/01/21 C:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpanel5.dll" v0.0 ts=3D2001/1/22 2:08 17k 2001/01/07 C:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cyghistory4.dll" v0.0 ts=3D2001/1/7 10:04 108k 2001/01/07 C:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygreadline4.dll" v0.0 ts=3D2001/1/7 10:04 243k 2000/10/23 C:\cygwin\bin\cygtiff3.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtiff3.dll" v0.0 ts=3D2000/10/23 6:44 41k 2000/11/20 C:\cygwin\bin\cygXpm-noX4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygXpm-noX4.dll" v0.0 ts=3D2000/11/20 8:11 45k 2000/11/20 C:\cygwin\bin\cygXpm-X4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygXpm-X4.dll" v0.0 ts=3D2000/11/20 8:15 49k 2001/02/03 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygz.dll" v0.0 ts=3D2001/2/4 2:05 615k 2001/01/31 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygwin1.dll" v0.0 ts=3D2001/1/31 20:38 Cygwin DLL version info: dll major: 1001 dll minor: 8 dll epoch: 19 dll bad signal mask: 19005 dll old termios: 5 dll malloc env: 28 api major: 0 api minor: 34 shared data: 3 dll identifier: cygwin1 mount registry: 2 cygnus registry name: Cygnus Solutions cygwin registry name: Cygwin program options name: Program Options cygwin mount registry name: mounts v2 cygdrive flags: cygdrive flags cygdrive prefix: cygdrive prefix cygdrive default prefix:=20 build date: Wed Jan 31 10:08:38 EST 2001 shared id: cygwin1S3 Use -h to see help about each section ------=_NextPart_000_0086_01C0C8E1.7BDDBCA0 Content-Type: application/octet-stream; name="test.c" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="test.c" #include #include #include SQLHENV V_OD_Env; // Handle ODBC = environment long V_OD_erg; // result of functions SQLHDBC V_OD_hdbc; // Handle = connection char V_OD_stat[10]; // Status SQL SQLINTEGER V_OD_err,V_OD_id; SQLSMALLINT V_OD_mlen; char V_OD_msg[200]; SQLINTEGER data; int main(int argc,char *argv[]) { V_OD_erg=3DSQLAllocHandle(SQL_HANDLE_ENV,SQL_NULL_HANDLE,&V_OD_Env); if ((V_OD_erg !=3D SQL_SUCCESS) && (V_OD_erg !=3D = SQL_SUCCESS_WITH_INFO)) { printf("Error AllocHandle\n"); exit(0); } V_OD_erg=3DSQLSetEnvAttr(V_OD_Env, SQL_ATTR_ODBC_VERSION, = (void*)SQL_OV_ODBC3, 0);=20 if ((V_OD_erg !=3D SQL_SUCCESS) && (V_OD_erg !=3D = SQL_SUCCESS_WITH_INFO)) { printf("Error SetEnv\n"); SQLFreeHandle(SQL_HANDLE_ENV, V_OD_Env); exit(0); } // allocate connection handle, set timeout V_OD_erg =3D SQLAllocHandle(SQL_HANDLE_DBC, V_OD_Env, &V_OD_hdbc);=20 if ((V_OD_erg !=3D SQL_SUCCESS) && (V_OD_erg !=3D = SQL_SUCCESS_WITH_INFO)) { printf("Error AllocHDB \n"); SQLFreeHandle(SQL_HANDLE_ENV, V_OD_Env); exit(0); } SQLSetConnectAttr(V_OD_hdbc, SQL_LOGIN_TIMEOUT, (SQLPOINTER *)5, 0); V_OD_erg =3D SQLConnect(V_OD_hdbc, (SQLCHAR*) "manidb", SQL_NTS, = (SQLCHAR*) "", SQL_NTS, = (SQLCHAR*) "", SQL_NTS); if ((V_OD_erg !=3D SQL_SUCCESS) && (V_OD_erg !=3D = SQL_SUCCESS_WITH_INFO)) { printf("Error SQLConnect %d\n",V_OD_erg); SQLGetDiagRec(SQL_HANDLE_DBC, V_OD_hdbc,1,=20 V_OD_stat, = &V_OD_err,V_OD_msg,100,&V_OD_mlen); printf("%s (%d)\n",V_OD_msg,V_OD_err); SQLFreeHandle(SQL_HANDLE_ENV, V_OD_Env); exit(0); } puts("Connected"); SQLDisconnect(V_OD_hdbc); SQLFreeHandle(SQL_HANDLE_DBC,V_OD_hdbc); SQLFreeHandle(SQL_HANDLE_ENV, V_OD_Env); printf("Success"); return(0); } =20 ------=_NextPart_000_0086_01C0C8E1.7BDDBCA0 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ------=_NextPart_000_0086_01C0C8E1.7BDDBCA0--