This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Two Library files with same name
- From: raja at ece dot gatech dot edu
- To: gcc at gcc dot gnu dot org
- Date: Mon, 31 Jul 2006 15:13:57 -0400 (EDT)
- Subject: Two Library files with same name
Hi,
I have two library files with same name(say 'foo') at different
locations(say location A & B). I want to use both the libraries.
If i say -LA -LB in the gcc options, it works. If i say -LB -LA, it doesnt
work. Can you explain me, how gcc resolves this library linking?
When it sees -lfoo, how does it resolve?
-lbar depends on -lfoo at location A and -lbaz depends on -lfoo at
location B.
Thank you,
Raja