This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error Shared lib ??
Hi guys,
Perhaps dynamic linker loads a wrong shared object?
You might want to check, if the library, you are linking
to, is also the one, the dynamic linker actually loads.
I have not had any problems using relative paths with
dlopen on linux, are you quite sure, there is a problem?
Yours sincerely,
Bjorn
Bharathi S wrote:
>
> On Thu, 9 May 2002, Venkatakrishnan, V wrote:
>
> > Bharathi, how are you loading it? Using dlopen? If yes, then one thing
> > that I've noticed is that dlopen() does not take a relative path but only an
> > absolute one, so you would wanna say
> > Lib_handle=dlopen("/path1/path2/path3/libind.so",RTLD_LAZY); instead of
> > maybe
> > Lib_handle=dlopen("../../libind.so",RTLD_LAZY);
>
> Thank you,
>
> NO. I am not trying to load the lib.
> I am calling the lib function, Just
> how we call our the local function.
>
> Bye,
> --
> --==| Bharathi S | BSB-364 DONLab | IIT-Madras |==--
> Good friendship shines like waxing moon,
> The bad withers like waning moon.
> *In Tirukkural of Holy Tamil poet Tiruvalluvar.