[freetds] libtds, libreplacements...

James K. Lowden jklowden at freetds.org
Sat Nov 8 10:41:08 EST 2008


andrey.utkin at wildix.com wrote:
> cdr_tds.c is a module of asterisk. You can take a look on it:
> http://svn.digium.com/view/asterisk/branches/1.4/cdr/cdr_tds.c?view=markup
> 
> Using 0.63 libtds from etch "made it work" - it brings shared lib  
> libtds.so. Now i link cdr_tds.so only against it.

That server is down for me atm.  But I think I might know what's going on.
 

My guess is that cdr_tds.c doesn't use an API library, but instead links
directly to libtds.  We have always discouraged that practice, and as of
0.82 we don't provide by default a libtds.so.  Instead, as I explained
(and as appears in the README) libtds functions are statically linked into
the API libraries.  

If I'm right, you should be able to link to libtds.a instead of libsybdb
and/or libct.  That would be to your benefit because a lot has happened
since 0.63.  

HTH.  

--jkl



More information about the FreeTDS mailing list