This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

ld - lQuerry about ibrary linking.


Hi List,
I have a small question about ld. I searched all over but couldnt find the
right solution. Its something like this -
I am linking my object file (.o) with a library to form an executable using
ld. So using -l(ar file) option. I am also
giving the search path using -L option for the archive. But how can I
instruct ld to do this in a little easier way. Means if ld finds the
library in search path it will get it and link it. But even if it doesnt
find the archive in that path, as long as all
the symbols are resolved, it should *not* give an error as *"Can not
find -l<archive>"*. It should just
go ahead and form the executable with the symbols. Well if it finds any
undefined symbols it should flash the error;
that anyway ld gives ..!!
Well can we do this..?
And if yes..How can I go for it..?

Any help is appreciated ..
Thanx and Warm regards,


Shrikar





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