delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/24/21:54:19

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: <Pine.BSF.3.95.980624124256.6127B-100000.cygnus.gnu-win32@fang.cs.sunyit.edu>
Mime-Version: 1.0
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019