1826473 Members
3803 Online
109692 Solutions
New Discussion

ACC Compilers

 
Sailesh Moorjani
Occasional Contributor

ACC Compilers

It is possible to install multiple versions of aCC compilers on a single server ?

Thanks
Sailesh
4 REPLIES 4
Alex Glennie
Honored Contributor

Re: ACC Compilers

Yes it's possible, I think the topic was discussed only yesterday, have you tried a search on say mutiple and compilers or CC & aCC ?

Have you a specific scenario or Qu ?
Alex Glennie
Honored Contributor

Re: ACC Compilers

in fact look below on this page
Alex Glennie
Honored Contributor

Re: ACC Compilers

Also of use :

As of aCC 01.21 (May 1999 release) there is a 'floating installation'
that does allow you to run more than one version of HP aC++ on the same
system, at the same time. The 01.21 release notes contain this
information.

Floating Installation:

As of HP aC++ A.01.12 (for HP-UX 10.x), HP aC++ A.03.10 (for HP-UX 11.x),
and subsequent versions, allow you to install more than one version of
the HP aC++ compiler 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.

By default, HP aC++ is installed under the /opt/aCC directory. In prior
releases, the compiler driver (aCC) looked for related files in /opt/aCC
subdirectories. This prevented the installation of more than one version
of HP aC++ on the same system at the same time.

Note that the floating installation only affects the /opt/aCC files. No
matter which HP aC++ driver you are using, the compiler still uses the
libraries, linker, and other files located in /usr/lib and /usr/ccs.

Note: You can use the __HP_aCC predefined macro to determine which
version is being run.

Caution: The floating installation is not intended for use 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, it is easy to switch to the prior version. The following example
shows how to setup 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.03.10 is the prior version,
and A.03.13 is the more recent version.

1. Copy the prior version to another directory:

cp -rp /opt/aCC /opt/aCC.03.10

2. Use swinstall to install the new (in this case, A.03.13) version.

3. Invoke the A.03.10 compiler (with its absolute path):

/opt/aCC.03.10/bin/aCC app.C

Note: Alternatively, you could change your PATH environment
variable or setup an alias for the absolute path.

4. Invoke the A.03.13 compiler:

aCC app.C

You can also find the floating installation instructions in the following
sources:

A. Access the HP aC++ Online Programmers Guide by invoking
'aCC +help' on your system.

--OR--

B. You can find the instructions on the web, along with other
interesting C++ information:


http://www.hp.com/go/c++


Once you access the site:

1. Select the 'Look at the Documentation' link.

2. Select the 'A.01.21 HTML' link.

3. Select the 'What's New' link (top of right-hand column).

4. Scroll down the page and select the "Floating installation'
link.


Sailesh Moorjani
Occasional Contributor

Re: ACC Compilers

Thanks for the info Alex, I am trying aCC 1.09, 1.12 and 1.21 to be installed on a single server.
What about the runtime libraries, there are about 8 runtime libraries under /usr/lib directory ? Would the latest runtime libraries for 1.21 be backward compatible with 1.09 and 1.21.

Sailesh