Operating System - Linux
1753855 Members
7231 Online
108808 Solutions
New Discussion юеВ

Difficulty understanding the difference between cc and aCC

 
SOLVED
Go to solution
David Polshaw
Occasional Advisor

Difficulty understanding the difference between cc and aCC

Hi All.

Firstly apologies for the vagueness but I have never realy been involved in C programing apart from the occasional make or cc of nethack! I recently installed the new ANSI C/C++ bundle on an 11.23 and found that the 'cc' command now fails with missing libraries. I have just discovered that the ANSI C compiler is actualy 'aCC'. Does this mean that the developers using this system should now use aCC rather than cc? Or am I missing something? Should I link 'cc' with 'aCC' for instance? Or do I need to do something else?

Cheers

Dave
10 REPLIES 10
Dennis Handly
Acclaimed Contributor

Re: Difficulty understanding the difference between cc and aCC

>I recently installed the new ANSI C/C++ bundle on an 11.23 and found that the 'cc' command now fails with missing libraries.

What are the names?
Are you on an Integrity server?

>I have just discovered that the ANSI C compiler is actually 'aCC'. Does this mean that the developers using this system should now use aCC rather than cc?

No. If you want a C compiler you use cc, if you want aC++, you use aCC.
David Polshaw
Occasional Advisor

Re: Difficulty understanding the difference between cc and aCC

It's an RP2470 PA Risk server.
David Polshaw
Occasional Advisor

Re: Difficulty understanding the difference between cc and aCC

Sorry - The 'live' machine is a 2470. The test one that I am installing in is an old A180.
Dennis Handly
Acclaimed Contributor
Solution

Re: Difficulty understanding the difference between cc and aCC

>It's an RP2470 PA-RISC server.

Since you are still on PA, aCC and cc are completely separate, both the drivers and compilers, you just buy them in one bundle.

Only the backends are the same.
David Polshaw
Occasional Advisor

Re: Difficulty understanding the difference between cc and aCC

Thanks, Denis. Original query solved then and 10 points on the way! Sub-question arises now then. Is there an easy way, bearing in mind that I am not a C programmer, of checking that the full developers kit is installed and working? I can see the package with swlist so it is installed OK - I just need to confirm it is functioning correctly before handing over to some 3rd party developers. Thanks in advance.

Dave
James R. Ferguson
Acclaimed Contributor

Re: Difficulty understanding the difference between cc and aCC

Hi Dave:

> Is there an easy way...of checking that the full developers kit is installed and working?

# swlist -l fileset -a state B9007AA

If each fileset shows "configured" then all is OK and ready!

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: Difficulty understanding the difference between cc and aCC

>Is there an easy way of checking that the full developers kit is installed and working?

JRF's swlist is one way.
For aCC, you can use:
$ aCC -V
For cc (on PA) you have to have a source file, it can be empty:
$ cc -c -V empty.c

You can also try accessing the man pages and Online Help:
$ man aCC
$ man cc
$ aCC +help
$ cc +help
Dennis Handly
Acclaimed Contributor

Re: Difficulty understanding the difference between cc and aCC

If you are happy with your answers you should close the thread indicating no more answers are needed.
David Polshaw
Occasional Advisor

Re: Difficulty understanding the difference between cc and aCC

Thanks all.

Been away for a long weekend, Denis. We don't all work all the time! ;-) Points on the way.