Building a library
Ian Lance Taylor
ian@airs.com
Mon Jun 16 16:45:00 GMT 2003
"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
More information about the Binutils
mailing list