Skip to Content.
Sympa Menu

freetds - RE: [freetds] undefined reference 'SQLDataSources'

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] undefined reference 'SQLDataSources'
  • Date: Fri, 7 Mar 2003 17:01:33 +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
>

Hi Hans!

SQLDataSources is a Driver Manager function, not a driver function.
FreeTDS provide an ODBC driver for sql server, you should use a Driver
Manager who load and use this driver.

freddy77

=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================




Archive powered by MHonArc 2.6.24.

Top of Page