Using ODBC
Full Turtle
full_turtle@yahoo.com.br
Tue May 2 11:48:00 GMT 2000
Hi,
I'm trying to develop ODBC applications with cygwin, but I'm running in
troubles. I'm using cygwin 20.1 and it has the libodbc32.a library on
/cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib.
The Makefile follows:
#begin Makefile
CC=gcc
#just for sql.h
INC=-I/Program\ Files/Microsoft\ Platform\ SDK/Include
LIB=-lodbc32
CFLAGS=-mno-cygwin
cc: selecting.exe
selecting.exe: selecting.c
$(CC) -o $@ $< $(INC) $(LIB) $(CFLAGS)
#end Makefile
Inside this selecting.c I've a call to SQLConnect which is within libodbc32.a,
but when I try to compile it:
C:\TEMP\ccBvsHJr.o(.text+0x36a):selecting.c: undefined reference to
`SQLConnect'
If I try:
nm /cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/lib/libodbc32.a | grep
SQLConnect
it reports:
00000000 T _SQLConnect@28
00000000 ? ___imp_SQLConnect@28
00000000 ? __imp__SQLConnect@28
I don't know what to do now! Any help ?
=====
FullTurtle
____________________________________________________________________________
YAHOO! BATE-PAPO
Conheça gente nova, faça amigos e divirta-se! - http://www.yahoo.com.br
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list