HP aC++/HP C A.06.25 Programmer's Guide

The above command causes the -v and -l options 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.
When CCLIBDIR is set a in the above example, the following two commands are
equivalent:
aCC -L/mnt/proj/lib file.o
aCC file.o
NOTE: You can use the -Ldirectory option to specify additional directories for
the linker to search for libraries.
CCROOTDIR Environment Variable
The CCROOTDIR environment variable causes aCC to invoke all subprocesses from an
alternate aCC directory, rather than from their default directory. The default aCC root
directory is /opt/aCC.
Syntax:
export CCROOTDIR=directory ksh/sh notation
setenv CCROOTDIR directory csh notation
directory is an aCC root directory where you want the HP aC++ driver to search for
subprocesses.
Example:
export CCROOTDIR=/mnt/CXX2.1
36 Getting Started with HP aC++