Linking static libraries
Zack Weinberg
zack@codesourcery.com
Wed Dec 17 10:55:00 GMT 2003
"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
More information about the Gcc
mailing list