public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* FW: shared library loading another shared library
@ 2003-02-27 12:50 Ajay Bansal
  2003-02-27 13:10 ` Bharathi S
  0 siblings, 1 reply; 5+ messages in thread
From: Ajay Bansal @ 2003-02-27 12:50 UTC (permalink / raw)
  To: gcc-help

Hi All

I have an application in which my code is getting linked with one of the
shared libraries which is there in -L <path>. This shared library gets
linked properly during linking. This shared library is further linked
with another shared library. But the second library is not getting
linked. 

I get an error in linking. How can I link to this second library. 

It is written in the man page that we can use -rpath for this. But it is
also written that using rpath option will ignore -L option. 

How should I load this second library now?


-Ajay



^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: shared library loading another shared library
@ 2003-02-27 13:17 Ajay Bansal
  2003-02-27 13:30 ` P.Srihari
  0 siblings, 1 reply; 5+ messages in thread
From: Ajay Bansal @ 2003-02-27 13:17 UTC (permalink / raw)
  To: Bharathi S, GNU GCC

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. (_/\

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <616BE6A276E3714788D2AC35C40CD18DAB618C@whale.softwire.co.uk>]

end of thread, other threads:[~2003-02-27 13:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-27 12:50 FW: shared library loading another shared library Ajay Bansal
2003-02-27 13:10 ` Bharathi S
2003-02-27 13:17 Ajay Bansal
2003-02-27 13:30 ` P.Srihari
     [not found] <616BE6A276E3714788D2AC35C40CD18DAB618C@whale.softwire.co.uk>
2003-02-27 13:27 ` Rupert Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).