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]

Re: Building a library


"sundaresh venugopal" <cbuff@programmer.net> writes:

> This is a basic beginners question.How do I build a library from a collection of
> .o files.I thought ar -rcs library.a files.o might work.But linking with this
> library return's undefined reference errors.If however I compile and link directly
> with the .o files ,the program compiles and works properly.

ar -rcs sounds right.  You'll have to provide a testcase.

Ian


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