freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Newbie question - which lib to link with ?
- From: Michael Peppler <mpeppler AT peppler.org>
- To: freetds AT lists.ibiblio.org
- Subject: Re: [freetds] Newbie question - which lib to link with ?
- Date: 26 Nov 2002 10:43:40 -0800
On Tue, 2002-11-26 at 10:06, Brian Ipsen wrote:
> Hi,
>
> I'm a complete newbie on both compiling and linking - and freetds - but I'm
> trying to make a simple test program to get a single row from a MS Sql
> server.
>
> I use the following command to compile/link:
>
> gcc -O3 -march=i686 -mcpu=i686 -funroll-loops -I/usr/include/openssl -DTDS70
> -DMSDBLIB -lz -L/usr/lib test.c
>
> But it gives me (among other):
>
> /tmp/cctIveod.o: In function `main':
> /tmp/cctIveod.o(.text+0x1c): undefined reference to `dbinit'
You need to link with the DB-Library libs:
-L$SYBASE/lib -lsybdb
should do it.
Michael
> --
> Michael Peppler / mpeppler AT peppler.org / http://www.mbay.net/~mpeppler
> mpeppler AT zetatools.com / ZetaTools, Inc / http://www.zetatools.com
> ZetaTools: Call perl functions as Sybase stored procedures!
Attachment:
signature.asc
Description: This is a digitally signed message part
-
[freetds] Newbie question - which lib to link with ?,
Brian Ipsen, 11/26/2002
- Re: [freetds] Newbie question - which lib to link with ?, Michael Peppler, 11/26/2002
Archive powered by MHonArc 2.6.24.