Next: Tags, Up: Other languages [Contents][Index]
Creating libraries of C++ code should be a fairly straightforward process, because its object files differ from C ones in only three ways:
ld
directly to link such libraries, and
we should use the C++ compiler instead.
ld
to link a C++ program or library is deemed
to fail.
Because of these three issues, Libtool has been designed to always use
the C++ compiler to compile and link C++ programs and libraries. In
some instances the main()
function of a program must also be
compiled with the C++ compiler for static C++ objects to be properly
initialized.