Skip to Content.
Sympa Menu

freetds - Re: [freetds] Accessing Ms SQL Server queries through FREETDS C Apis

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT schemamania.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Accessing Ms SQL Server queries through FREETDS C Apis
  • Date: Tue, 16 Nov 2004 01:34:46 -0500

On Tue, 16 Nov 2004 13:12:51 +1100, "Mostafa Fazle Rabbi"
<MostafaFazleRabbi AT prettygirl.com.au> wrote:
> Hi,
>
> I want to build a package using FreeTDS. How can I biuld a package.
> Which Makefiles
> do I need to use ? I was trying to complie a test program which uses
> freetds functions.
> This was my command: gcc x.c
>
> Compilation was unsuccessful and was comming up with following error
> message
> /tmp/cce6NMOE.o(.text+0x82): In function `main':
> : undefined reference to `tds_alloc_login'

Don't use libtds directly. Cf. http://www.freetds.org/which_api.html.

For example Makefiles, you might want to look at src/dblib/Makefile. From
the error quoted above, it looks like you need to link in additional
libraries.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page