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: <00bb01bfe881$bb08bb00$c0bf1004@homepc.freedsl.com> Reply-To: "Dave Arnold" From: "Dave Arnold" To: , "Cygwin" Subject: Re: ODBC symbols undefined reference with -lodbc32 Date: Fri, 7 Jul 2000 18:15:58 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Could it be you need to #include a header file for the odbc library? /dave -----Original Message----- From: kulack AT us DOT ibm DOT com To: Cygwin Date: Friday, July 07, 2000 2:44 PM Subject: ODBC symbols undefined reference with -lodbc32 >Trying to compile an ODBC application using gcc on Win2000. >I'm using the -lodbc32 option and having some problems with undefined >references to the ODBC APIs. > >This looks to be a pretty common boggle. >Based on searching through the archives and poking around in mingw32, I've >found some things to do. > >- Cygwin NetRelease 1.1.2, installed June 21st >- I've installed the newest platform SDK from MS >- Recreated /usr/lib/libodbc32.a using the odbc32.lib from there (required >upgrade to binutils-20000625) >- Tried with both sql*.h headers from the SDK and the original ones that >come with the cygwin distribution. >- The ODBC32.DLL in \WIN2000\system32 looks ok >- I can use the ODBC tester that come with oracle to correctly connect to >my DB >Still get the undefined references. >Any sugs? >Thanks. > > > >Bash /orasrc/cli > > make cli1.exe >gcc -g -mthreads -lodbc32 cli1.c >C:\DOCUME~1\kulack\LOCALS~1\Temp/ccFsznyd.o: In function `main': >/orasrc/cli/cli1.c:37: undefined reference to `SQLAllocEnv AT 4' >/orasrc/cli/cli1.c:42: undefined reference to `SQLAllocConnect AT 8' >/orasrc/cli/cli1.c:54: undefined reference to `SQLConnect AT 28' >/orasrc/cli/cli1.c:62: undefined reference to `SQLAllocStmt AT 8' >/orasrc/cli/cli1.c:76: undefined reference to `SQLExecDirect AT 12' >/orasrc/cli/cli1.c:80: undefined reference to `SQLFetch AT 4' >/orasrc/cli/cli1.c:84: undefined reference to `SQLGetData AT 24' >/orasrc/cli/cli1.c:97: undefined reference to `SQLTransact AT 12' >/orasrc/cli/cli1.c:101: undefined reference to `SQLDisconnect AT 4' >/orasrc/cli/cli1.c:105: undefined reference to `SQLFreeStmt AT 8' >/orasrc/cli/cli1.c:109: undefined reference to `SQLFreeConnect AT 4' >/orasrc/cli/cli1.c:113: undefined reference to `SQLFreeEnv AT 4' >collect2: ld returned 1 exit status >make: *** [cli1.exe] Error 1 > > > >-- >Want to unsubscribe from this list? >Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com