Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <20000502184732.2438.qmail@web3304.mail.yahoo.com> Date: Tue, 2 May 2000 15:47:32 -0300 (ART) From: =?iso-8859-1?q?Full=20Turtle?= Subject: Using ODBC To: cygwin AT sourceware DOT cygnus DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 AT 28 00000000 ? ___imp_SQLConnect AT 28 00000000 ? __imp__SQLConnect AT 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 AT sourceware DOT cygnus DOT com