Re: Library loading

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
2010/7/30 Richard Gibson <[email protected]>:
> Hello all
>
> For anyone reading this, in answer to my own message the other day (
> http://lists.ibiblio.org/pipermail/freetds/2010q3/026188.html), it is quite
> simple. A quick read of the C++ dlopen mini HOWTO (
> http://ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/C++-dlopen.html)
> showed the answer.
>
> In the section 3.3 of this howto in example 2, it clearly shows use of
> dlopen once to open the library. In our case, we'd open the relevant FreeTDS
> library .so file.
> Then, it goes on to use dlsym more than once for the symbols it is
> interested in. Therefore, we need to extract and convert EACH symbol we're
> interested in.
>
> Examination of the samples with FreeTDS will highlight the functions we need
> to use.
>
> Once thing I'm still not too clear on - which .so should I be loading? libct
> or libsydb? Anyone?
>
> Thanks
> Rich

Hi,
  before you spend other time... in LGPL license dynamic loading is
against static loading, do not confuse with runtime linking
(dlopen/dlsym and so on). That is use -l linker option or import
library, the important thing is that FreeTDS code is in a separate
file (like .so, .sl or .dll file).

bye
  freddy77
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.