help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: name clash between libunzip.so and zlib library


From: gobigred
Subject: Re: name clash between libunzip.so and zlib library
Date: 4 Aug 2006 18:08:04 -0700
User-agent: G2/0.2

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" <taotao.yu@gmail.com> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]