List Info

Thread: name clash between libunzip.so and zlib library




name clash between libunzip.so and zlib library
user name
2006-08-04 22:42:28
have to use both libraries for different purpose
both have function named as "inflate"
$ nm libunzip.so | grep "inflate"
0000beb0 T inflate
$ nm libz.so | grep "inflate"
000034ca T inflate

is there anyway to avoid the name clash, through compiler or
linker?

thanks!

_______________________________________________
help-gnu-utils mailing list
help-gnu-utilsgnu.org

http://lists.gnu.org/mailman/listinfo/help-gnu-utils
name clash between libunzip.so and zlib library
user name
2006-08-05 00:33:38
"gobigred" <taotao.yugmail.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


_______________________________________________
help-gnu-utils mailing list
help-gnu-utilsgnu.org

http://lists.gnu.org/mailman/listinfo/help-gnu-utils
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )