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