HP aC++/HP C A.06.25 Programmer's Guide
Environment Variables
This section describes the following environment variables that you can use to control
the HP aC++ or HP C compiler:
• “aCC_FULL_PATHNAMES Environment Variable” (page 35)
• “aCC_MAXERR Environment Variable” (page 35)
• “CXXOPTS Environment Variable” (page 35)
• “CCLIBDIR Environment Variable” (page 36)
• “CCROOTDIR Environment Variable” (page 36)
• “TMPDIR Environment Variable” (page 37)
aCC_FULL_PATHNAMES Environment Variable
Exporting the aCC_FULL_PATHNAMES variable causes the compiler to include full path
names for files in compiler messages. This feature is useful in debugging.
aCC_MAXERR Environment Variable
The aCC_MAXERR environment variable allows you to set the maximum number of
errors you want the compiler to report before it terminates compilation. The default is
100.
CXXOPTS Environment Variable
The CXXOPTS environment variable provides a convenient way to include frequently
used command-line options automatically.
Options before the vertical bar (|) are placed before command-line options to aCC. The
options after the vertical bar are placed after any command-line option. Note that the
vertical bar must be delimited by white space.
If you do not use the vertical bar, all options are placed before the command line
parameters. Set the environment variable and the options you want are automatically
included each time you execute the aCC command.
Syntax:
export CXXOPTS="options | options" ksh/sh notation
setenv CXXOPTS "options | options" csh notation
Usage:
For quick or temporary changes to your build environment, use CXXOPTS instead of
editing your makefiles.
Example:
export CXXOPTS="-v | -lm" ksh/sh notation
setenv CXXOPTS "-v | -lm" csh notation
Environment Variables 35