Operating System - HP-UX
1834146 Members
3156 Online
110064 Solutions
New Discussion

Re: Version 10.20 C Compiler

 

Version 10.20 C Compiler

Hello guys and gals,

I have another question that I hope someone can help me with. Apparently the C compiler that comes with HP Unix 10.20 can only compile kernel code and not ANSI code. A customer of ours tried running the GNU C compiler (gcc). Does this compiler "usually" run under 10.20? The message they received was:
?Directive name not recognised - NSUBSPA?. Have any of you used this compiler and did you have any special tweaking that you had to do to get it to run? I'd appreciate any help you can give me. I don't have this compiler in-house to test it out, so I'llhave to get back to our client to test your suggestions. As always, thank you in advance.

1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: Version 10.20 C Compiler

Hi,

I'm not famaliar with an NSUBSPA directive or #pragma but gcc does work well under 10.20. You can simply download the binaries from one of the HP-UX Porting Centre's. I think what might have happened is that your client downloaded gcc but did not download the binutils which includes the gnu assembler. gcc will not work with HP's assembler.

Clay
If it ain't broke, I can fix that.