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 |
 |
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.
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:
Copy the prior version
to another directory.
cp -rp /opt/aCC
/opt/aCC.05.55
Use swinstall to install the new version (A.06.00 or A.05.60 in this case).