16.4.2 Automake C support

back: testing c++ implementations with autoconf
forward: libtool c++ support
 
fastback: libtool c++ support
up: how gnu autotools can help
fastforward: further reading
top: autoconf, automake, and libtool
contents: table of contents
index: index
about: about this document

16.4.2 Automake C++ support

Automake provides support for compiling C++ programs. In fact, it makes it practically trivial: files listed in a SOURCES primary may include `.c++' , `.cc' , `.cpp' , `.cxx' or `.C' extensions and Automake will know to use the C++ compiler to build them.

For a project containing C++ source code, it is necessary to invoke the AC_PROG_CXX macro in `configure.in' so that Automake knows how to run the most suitable compiler. Fortunately, when little details like this happen to escape you, automake will produce a warning:

 
 $ automake automake: Makefile.am: C++ source seen but CXX not defined in automake: Makefile.am: `configure.in' 

This document was generated by Gary V. Vaughan on May, 24 2001 using texi2html


GNU Autoconf, Automake and Libtool
GNU Autoconf, Automake, and Libtool
ISBN: 1578701902
EAN: 2147483647
Year: 2002
Pages: 290

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net