Re: name clash between libunzip.so and zlib library

"gobigred" <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization http://groups.google.com
Message-ID <[email protected]>
doesn't work, i tried it before. because it's so, the absolute address
is never resolved at compile-time. it just says, ok, there is a
function called "inflate" avaiable somewhere without knowing its
absolute location. it's about the linker is confused about same
function name exported from two library and picked up the wrong one. I
could make it work by switching the linking order, but I just don't
like such approach.

Paul Jarc wrote:
> "gobigred" <[email protected]> wrote:
> > have to use both libraries for different purpose
> > both have function named as "inflate"
>
> You can use dlopen() to load the libraries and dlsym() to access a
> specific function within a library.  Check the man pages for details.
> 
> 
> paul
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.