This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Linking static libraries


"Jean-Eric Cuendet" <jean-eric.cuendet@bluewin.ch> writes:

> Hi,
> I would like to know if there is a way to link static libraries together.
> Ex:
> file1.o file2.o => lib1.a
> file3.o file4.o => lib2.a
> lib1.a lib2.a => lib3.a    <===

static libraries are just archives of all their component object
files.  use 'ar x' to extract all the components from one .a file 
and 'ar r' to put them into the other one.

zw


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