Skip to Content.
Sympa Menu

freetds - [freetds] undefined reference 'SQLDataSources'

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Hans Jorgensen" <jorgensenhans AT hotmail.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] undefined reference 'SQLDataSources'
  • Date: Fri, 07 Mar 2003 16:57:47 +0100

Dear list,

I am trying to connect a Redhat Linux client v. 7.2 to a Microsoft SQL server 2000.

I have installed libiodbc v. 3.0.6 and freeTDS v. 0.61.

As described in http://www.freetds.org/userguide/x1853.htm, I configured freeTDS with:

./configure --prefix=/usr/local/freetds --with-iodbc=/usr/local

When I compile odbctest with ...
cd libiodbc/samples
make odbctest.o
gcc -g -o odbctest odbctest.o /usr/local/freetds/lib/libtdsodbc.a

... I get the following error:
odbctest.o: In function 'ODBC_Connect':
/src/libiodbc-3.0.6/samples/odbctest.c:188 undefined reference to 'SQLDataSources'
/src/libiodbc-3.0.6/samples/odbctest.c:200 undefined reference to 'SQLDataSources'
odbctest.o: In function 'ODBC_Disconnect':
/src/libiodbc-3.0.6/samples/odbctest.c:252 undefined reference to 'SQLCloseCursor'
collect2: ld returned 1 exit status

Any ideas?

Hans




_________________________________________________________________
Hold kontakten med dine venner med MSN Messenger http://messenger.msn.dk




Archive powered by MHonArc 2.6.24.

Top of Page