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.

NOTE: Do not use floating installation with the following:

CCROOTDIR environment variable

-tc,namecommand 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).

30 Getting Started with HP aC++