From: umji AT fang DOT cs DOT sunyit DOT edu (Michael Imor) Subject: odbc32 linking problems 24 Jun 1998 21:54:19 -0700 Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: gnu-win32 AT cygnus DOT com From searching the archives I know this question has been asked many times before but I couldn't find a response so here it goes again. How do you link against the odbc libraries? Here's my sample do-nothing program: #include main() { HDBC Connection; HSTMT Statement; SQLAllocStmt(Connection, &Statement); } This is what I use to compile: gcc -o odbctest odbctest.c -lodbc32 And here's the error I get: C:\TEMP\cc0010371.o(.text+0x14):odbctest.c: undefined reference to `SQLAllocStmt' Any ideas? I'm using cygwin32 B19.1 Thanks Mike - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".