Mail Archives: cygwin/1998/06/24/21:54:19
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 <sqlext.h>
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".
- Raw text -