This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]