HP C/aC++ for PA-RISC Software manual ACCFULLPATHNAMES Environment Variable

Models: C/aC++ for PA-RISC Software

1 230
Download 230 pages 50.97 Kb
Page 27
Image 27

“CXX_MAP_FILE Environment Variable” (page 29)

“TMPDIR Environment Variable” (page 29)

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

The above command causes the -vand -loptions to be passed to the aCC command each time you execute it.

When CXXOPTS is set as above, the following two commands are equivalent:

aCC -g prog.C

aCC -v -g prog.C -lm

CCLIBDIR Environment Variable

The CCLIBDIR environment variable causes the aCC command to search for libraries in an alternate directory before searching in the default directories.

Syntax:

export

CCLIBDIR=directory

ksh/sh notation

setenv

CCLIBDIR directory

csh notation

directory is an HP-UX directory where you want HP aC++ to look for libraries.

Example:

export CCLIBDIR=/mnt/proj/lib

In this example HP aC++ searches the directory /mnt/proj/lib for libraries before searching the directory /opt/aCC/lib.

Environment Variables

27

Page 27
Image 27
HP C/aC++ for PA-RISC Software manual ACCFULLPATHNAMES Environment Variable, ACCMAXERR Environment Variable