HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)

In this example, HP aC++ searches the directories under /mnt/CXX2.1 (/mnt/CXX2.1/
bin and /mnt/CXX2.1/lbin) for subprocesses rather than their respective default
directories.
TMPDIR Environment Variable
The TMPDIR environment variable allows you to change the location of temporary files
created by the compiler. The default directory is /var/tmp.
Syntax:
export TMPDIR=directory ksh/sh notation
setenv TMPDIR directory csh notation
directory is the name of an HP-UX directory where you want HP aC++ to put temporary
files during compilation.
Example:
export TMPDIR=/mnt/temp ksh notation
setenv TMPDIR /mnt/temp csh notation
The above example specifies that HP aC++ should put all temporary files in /mnt/temp.
Floating Installation
More than one version of the HP aC++ compiler can be installed on one system at the
same time. The floating installation feature allows you to install the compiler in any
location. You can install as many compiler versions as required, depending on your
system’s resources.
HP aC++
By default, HP aC++ is installed under the /opt/aCC directory. In earlier releases, the
compiler driver (aCC) looked for related files in subdirectories of the /opt/aCC directory.
This prevented installation of more than one version of HP aC++ on the same system at
the same time.
Only files in /opt/aCC are affected by floating installation. Regardless of the HP aC++
driver you use, the compiler still uses the libraries, linker, and other files located in /usr/
lib and /usr/ccs.
Floating installation is designed to help facilitate in-house development. You must not
ship libraries in non-standard places, because explicit runtime library specifications and
linker options are required.
You can use the __HP_aCC predefined macro to determine which version is being run.
HP C
You can use the __HP_cc predefined macro to determine which version is being run.
32 Getting Started with HP aC++