Skip to Content.
Sympa Menu

freetds - Re: [freetds] Undefined reference to tds_convert

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Undefined reference to tds_convert
  • Date: 02 Feb 2003 10:32:25 +0100

Il sab, 2003-02-01 alle 18:37, Frank von Daak ha scritto:
> Hello List,
>
> my name is Frank and I'm new to the list.
>
> I just started to play a little bit with freetds (seems to be very great
> !), but now I've a problem, that I'm not able to fix:
>
> I started to write a small kde-application with KDevelop (and freetds
> included)- everything's working fine !
> Login, connect and sending query's is working fine, but when I use the
> 'tds_convert...'-Functions, I'm not longer able to compile it.
>
> ---snip---
> ctype = tds_get_conversion_type(col->column_type, col->column_size);
> ---
>
> With this line included, my linker says:
>
> undefined reference to `tds_conversion_type(int, int)'
>

?? perhaps it say "reference to `tds_get_conversion_type(int, int)'" ...
header tdsconvert.h do not declare his function as extern "C" for C++
programs (fixed in CVS minutes ago) so a workaround is
extern "C" {
#include "tdsconvert.h"
}

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page