This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Error Shared lib ??
- From: "Venkatakrishnan, V" <v dot venkatakrishnan at channels dot usa dot xerox dot com>
- To: "'Bharathi S'" <bharathi at lantana dot tenet dot res dot in>, "'GNC GCC'" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 9 May 2002 14:58:58 -0400
- Subject: RE: Error Shared lib ??
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);
Hth,
Venky
-----Original Message-----
From: Bharathi S [mailto:bharathi@lantana.tenet.res.in]
Sent: Thursday, May 09, 2002 3:03 PM
To: GNC GCC
Subject: Error Shared lib ??
Hello all,
I am getting the following error when i am trying
to call one lib function.
Actually this function is in libind.so.
xterm: error while loading shared
libraries: /usr/X11R6/lib/libX11.so.6:
undefined symbol: fun_one
How to solve this problem ?
Bye,
--
--==| Bharathi S | BSB-364 DONLab | IIT-Madras |==--
A help rendered in hour of need
Though small is greater then the world.
*In Tirukkural of Holy Tamil poet Tiruvalluvar.