The following command line archives the template functions contained in the library and object files.
demo% CC -xar -o libmain.a a.o b.o c.o