Operating System - HP-UX
1827387 Members
4102 Online
109963 Solutions
New Discussion

Re: Ansi C compiler + HP C Bundled

 
SOLVED
Go to solution
Emanuele De Angelis
Frequent Advisor

Ansi C compiler + HP C Bundled

Hi,
it's possible to install two version of C compiler (Ansi C compiler and HP C Bundled) and to use all compiler,the first for a project and the second for other project?
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor

Re: Ansi C compiler + HP C Bundled

Hi,

Check this link

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B3901BA

You will have to purchase this product.

Robert-Jan
Peter Godron
Honored Contributor
Solution

Re: Ansi C compiler + HP C Bundled

Emanuele,
once the ANSI C compiler is installed, you can select which compiler to use by using an alias.
Please note that the HP C bundled compiler is normally only used for kernel compilation, so may not support all your libraries etc.
As a side-note, why would you want to compile one project with one compiler and a different project with another? ANSI standard should be the same, regardless what compiler you use.
Regards
Ermin Borovac
Honored Contributor

Re: Ansi C compiler + HP C Bundled

Once you install ANSI C compiler /usr/bin/cc points to /opt/ansic/bin/cc. Bundled C compiler is in /usr/ccs/bin/cc (there's also symbolic link cc_bundled).

Bundled C compiler is supposed to used for kernel compiles only; it's not much good for anything else.