Hi ,
    I am working on a program that uses dlopen() . The platform is Red Hat
linux 7.1 (kernel 2.4.2-2) . I want to load a library
libreadline.so , through dlopen() and call one of it's functions
{readline()}. This library has some symbols (BC , PC , tputs ...) that are
unresolved . When dlopen() is called to load this library it fails saying a
symbol (BC) is undefined.
These symbols are defined in a library libncurses.so . If I try to open this
library through dlopen() first and then the library libreadline.so , then
also , dlopen() fails.
But if i make a program that uses a function{readline()} of libreadline.so
and try to link it with both of these libraries through
    gcc program-name.c -lreadline -lncurses
it works fine. is it the problem of dlopen() and if possible is there a
workaround for this problem.I want to load these libraries dynamically only.

thanks in advance
-ritesh
---------------------------------------------------------------
Ritesh Satia
[EMAIL PROTECTED]
---------------------------------------------------------------


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to