This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linking static libraries
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: "Jean-Eric Cuendet" <jean-eric dot cuendet at bluewin dot ch>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 17 Dec 2003 01:54:11 -0800
- Subject: Re: Linking static libraries
- References: <3FC3FB65000BC30E@mssazhb-int.msg.bluewin.ch>
"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