delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | kulack AT us DOT ibm DOT com |
X-Lotus-FromDomain: | IBMUS |
To: | "Cygwin" <cygwin AT sourceware DOT cygnus DOT com> |
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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |