Skip to Content.
Sympa Menu

freetds - [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: [freetds] Undefined reference to tds_convert
  • Date: 01 Feb 2003 18:37:47 +0100

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)'


The code is nearly identical with the one used in 'src/apps/tsql.c -
do_query()'

Here's, what my linker is calling:

g++ -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall
-pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -O0 -g3
-Wall -fno-exceptions -fno-check-new -DTDS70 -o tsqlcontainer tsqlcont.o
tsqlcontainer.o main.o tsqlcont.moc.o tsqlcontainer.moc.o
-L/usr/lib/libtds.so -L/usr/X11R6/lib -L/usr/lib/qt-copy/lib
-L/opt/kde3/lib /usr/lib/libtds.so -lnsl /opt/kde3/lib/libkdeui.so
-L/usr/lib/gcc-lib/i386-linux/3.2.2
-L/usr/lib/gcc-lib/i386-linux/3.2.2/../../.. /opt/kde3/lib/libkdecore.so
/opt/kde3/lib/libDCOP.so -ldl -lutil /opt/kde3/lib/libart_lgpl_2.so
/opt/kde3/lib/libkdefx.so -lXrender -lstdc++ -lc -lgcc_s -lqt-mt -lpng
-lz -lm -lXext -lX11 -lSM -lICE -lpthread -lresolv -Wl,--rpath
-Wl,/opt/kde3/lib -Wl,--rpath -Wl,/opt/kde3/lib -Wl,--rpath
-Wl,/usr/lib/qt-copy/lib -Wl,--rpath -Wl,/usr/X11R6/lib


Who can tell me, what is wrong with this ?
What have I forgotten ?

Thank you very much !!!

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