1837154 Members
2144 Online
110112 Solutions
New Discussion

Re: C Compiler

 
SOLVED
Go to solution
N.D
Occasional Advisor

C Compiler

Hi
Just wanted to know how I actually know if HP C/ANSI C Developer's Bundle for HP-UX 11.00 (S800) is being used - its installed on most of our servers but not sure if we need it
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: C Compiler

Hi:

If its installed, it would be the default for C compilation. If you do anything semi-serious, other than a kernel regeneration, you should have teh Ansi C compiler.

You should see '/usr/bin/cc' as a soft link to '/opt/ansic/bin/cc'. Do:

# ls ul '/opt/ansic/bin/cc'

...to see the (probable) last use of the compiler (aside from backups like 'tar').

Regards!

...JRF...
N.D
Occasional Advisor

Re: C Compiler

Hi I tried running the command you suggested - is it correct:

# ls ul '/opt/ansic/bin/cc'
ul not found
/opt/ansic/bin/cc
H.Merijn Brand (procura
Honored Contributor

Re: C Compiler

And the fastest test is to use an option that is only available in ANSI-C

a5:/u/usr/merijn 104 > /usr/ccs/bin/cc -Ae -c /dev/null
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
a5:/u/usr/merijn 105 > /opt/ansic/bin/cc -Ae -c /dev/null
a5:/u/usr/merijn 106 > cc -Ae -c /dev/null
a5:/u/usr/merijn 107 >

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
James R. Ferguson
Acclaimed Contributor

Re: C Compiler

Hi:

# ls -ul '/opt/ansic/bin/cc'

...for last access with details

Regards!

...JRF...
Patrick Wallek
Honored Contributor

Re: C Compiler

JRF just missed the '-' sign. The command should be:

# ls -ul /opt/ansic/bin/cc

Do a 'man ls' for info. on the '-u' switch.