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: Frank von Daak <frank.fun AT kpage.de>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] Undefined reference to tds_convert
  • Date: 02 Feb 2003 10:40:30 +0100

On Sun, 2003-02-02 at 10:32, Frediano Ziglio wrote:
> > 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)'" ...

Oh - sure, you're right :-)

> 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"
> }
>

That fixed the problem !
Thank you very much !

> freddy77
>

Frank

--
Name: Frank von Daak
eMail: frank.fun AT kpage.de Homepage: http://www.kpage.de
eMail: siteadmin AT linux-dev.de Homepage: http://www.linux-dev.de
"If Bill Gates had a nickel for every time Windows crashed...
- oh wait, he does."






Archive powered by MHonArc 2.6.24.

Top of Page