Next: Objective C Support, Previous: Yacc and Lex, Up: Programs
Automake includes full support for C++.
Any package including C++ code must define the output variable
CXX
in configure.ac; the simplest way to do this is to use
the AC_PROG_CXX
macro (see Particular Program Checks).
C++ support doesn't mean that programs using the Qt library (and notably Qt's signal/slot mechanism) will be compiled correctly (using Qt's Meta Object Compiler). For that you have to have a look on the Qt support (see Qt Support).
A few additional variables are defined when a C++ source file is seen:
CXX
CXXFLAGS
AM_CXXFLAGS
CXXFLAGS
.
CXXCOMPILE
CXXLINK