Re: Library loading

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Richard Gibson wrote:
> 
> 
> I also
> believe that libtds is for internal use by the FreeTDS library - is this
> correct?

Yes.  Current versions don't normally create libtds as a shared object.  
 
> So, I am left with libct and libsybdb. I know that there are three APIs
> (db-lib, ct-lib and odbc) and I am looking to use either db-lib or
> ct-lib. Which of the two libraries (libct and libsybdb) should I load?
> Does each .so correspond to a certain API, or does one .so provide more
> than one API?

libct is ct-lib; libsybdb is db-lib.  

I recommend db-lib because it's constantly improved.  No one has worked on
ct-lib much in several years.  

> Additionally, what are the entry point function names? 

Cf. doc/api_status.txt in your distribution.  

> I also extracted most of the functions in the .so using readelf -a but
> I'm none the wiser.

nm(1) is your friend.  

HTH. 

--jkl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.