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

HP C
By default, HP C is installed under the /opt/ansic directory. In earlier releases, the
compiler driver (cc) looked for related files in subdirectories of the /opt/ansic
directory. This prevented installation of more than one version of HP C on the same
system at the same time.
Only files in /opt/ansic are affected by floating installation. Regardless of the HP
C 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_cc predefined macro to determine which version is being run.
NOTE: Do not use floating installation with the following:
CCROOTDIR environment variable
-tc,name command line option
Setting up Floating Installation
You may want to install the most recent compiler version and keep the prior version
on one system. If there are problems with the most recent version, you can easily switch
to the prior one. Following is an example of how to set up the floating installation
feature for this purpose. Assume that your system will have two versions of the
compiler, both floating install enabled. In this case, A.05.50 is the prior version, and
A.05.60 or A.06.00 is the more recent version.
To setup floating installation, complete the following steps:
1. Copy the prior version to another directory.
cp -rp /opt/aCC /opt/aCC.05.55
2. Use swinstall to install the new version (A.06.00 or A.05.60 in this case).
38 Getting Started with HP aC++