C++ User's Guide

Warnings

Do not add .o files from the template data base on the command line.

Do not use the ar command directly for building archives. Use CC -xar to ensure that template instantiations are automatically included in the archive.