This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Building a library
- From: Ian Lance Taylor <ian at airs dot com>
- To: "sundaresh venugopal" <cbuff at programmer dot net>
- Cc: binutils at sources dot redhat dot com
- Date: 16 Jun 2003 09:45:37 -0700
- Subject: Re: Building a library
- References: <20030616085815.10551.qmail@mail.com>
"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