do export LD_LIBRARY_PATH=path where ur libraries are to be found Ajay Bansal wrote: > > Nops.. It doesn't get solved this way. > > Say libs are > > libl1 > libl2 > > ldd libl1 > . > . > libl2 => ..... > > If my app links to lib1, lib2 is not being automatically found. Though > both are in the same directory... > > ??? > > -----Original Message----- > From: Bharathi S [mailto:bharathi@lantana.TeNeT.res.in] > Sent: Thursday, February 27, 2003 6:39 PM > To: GNU GCC > Subject: Re: shared library loading another shared library > > On Thu, 27 Feb 2003, Ajay Bansal wrote: > > > I get an error in linking. How can I link to this second library. > > Use 2 or more -L options Like -L/path/lib1 -L/path/lib2 ... > > HTH :) > -- > Bharathi S, IndLinuX Team, (__) > DONLab, TeNeT Group, oo / > IIT-Madras, Chennai-INDIA. (_/\