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 -Ldirectoryoption 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:

28 Getting Started with HP aC++