Operating System - HP-UX
1851372 Members
2609 Online
104058 Solutions
New Discussion

A confusion about cc and aCC -Ae

 
lc_phoenix
New Member

A confusion about cc and aCC -Ae

hi
My project is a c program, now there are two choices, I can build it with aCC -Ae or directly use cc. My machine is ia64 hp server rx4640.
At the beginning, I prefer to use cc, but when I use -g with cc, it will report info as follow:
(Bundled) cc: warning 922: "-g" is unsupported in the bundled compiler, ignored.

Now I turn to use aCC -Ae, I am not sure what will happen or what kinds of potential problems will be if I use aCC to build c program.
Can anyone else tell me what's the main difference between the cc and aCC -Ae style. or what kinds of problem I need to care about?
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: A confusion about cc and aCC -Ae

Hi:

The warning citing the "Bundled" compiler occurs because you don't have the ANSI C/aC++
compiler installed. When you do, '/usr/bin/cc' symlinks to it instead of the "bundled" compiler which isn't good for much other than simple, non-ANSI compiles.

If you want to use HP's C/aC++ compiler, you must license it:

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AA

An evaluation copy is also available as documented in the link above.

Otherwise, you need to install the GNU C compiler. Binaries are available thanks to Merijn here:

http://mirrors.develooper.com/hpux/downloads.html

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: A confusion about cc and aCC -Ae

If you have aCC you should also have cc, if you have purchased B9007AA, HP C/aC++ Developer's Bundle.

>aCC -Ae, I am not sure what will happen or what kinds of potential problems will be if I use aCC to build C program.

On Integrity there is no difference at all. That's why you should use cc and not aCC, since you get both for the same price.

>JRF: the "bundled" compiler which isn't good for much other than simple, non-ANSI compiles.

On Integrity the compiler is ANSI, not K&R.

>you need to install the GNU C compiler.

You can also get it from HP:
http://www.hp.com/go/gcc