Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Delivered-To: mailing list cygwin@sources.redhat.com From: kulack@us.ibm.com X-Lotus-FromDomain: IBMUS To: "Cygwin" Message-ID: <85256915.00773BBE.00@D51MTA04.pok.ibm.com> Date: Fri, 7 Jul 2000 16:42:28 -0500 Subject: ODBC symbols undefined reference with -lodbc32 Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline 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@4' /orasrc/cli/cli1.c:42: undefined reference to `SQLAllocConnect@8' /orasrc/cli/cli1.c:54: undefined reference to `SQLConnect@28' /orasrc/cli/cli1.c:62: undefined reference to `SQLAllocStmt@8' /orasrc/cli/cli1.c:76: undefined reference to `SQLExecDirect@12' /orasrc/cli/cli1.c:80: undefined reference to `SQLFetch@4' /orasrc/cli/cli1.c:84: undefined reference to `SQLGetData@24' /orasrc/cli/cli1.c:97: undefined reference to `SQLTransact@12' /orasrc/cli/cli1.c:101: undefined reference to `SQLDisconnect@4' /orasrc/cli/cli1.c:105: undefined reference to `SQLFreeStmt@8' /orasrc/cli/cli1.c:109: undefined reference to `SQLFreeConnect@4' /orasrc/cli/cli1.c:113: undefined reference to `SQLFreeEnv@4' collect2: ld returned 1 exit status make: *** [cli1.exe] Error 1 -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com