Operating System - HP-UX
1833589 Members
3560 Online
110061 Solutions
New Discussion

Re: I need an CANSI/C compiler -> HPUX

 
Leandro Sales
Advisor

I need an CANSI/C compiler -> HPUX

Hi... I need a CC ANSI/C compiler, what do you suggest?

I use HPUX 10.20, when I try to compile some source, I got errors and warnings because I don't have a ANSI/C installed.

Thanks.
8 REPLIES 8
Sachin Patel
Honored Contributor

Re: I need an CANSI/C compiler -> HPUX

Hi
You have to call HP.
B3899BA HP C/ANSI C Developer's bundle is not a free product.

Sachin
Is photography a hobby or another way to spend $
Tom Jackson
Valued Contributor

Re: I need an CANSI/C compiler -> HPUX

Hi Leandro:

You need thet HP C/ANSI C Developer's Bundle. Part # B3899BA. It costs $$.

Tom
Bernie Vande Griend
Respected Contributor

Re: I need an CANSI/C compiler -> HPUX

Your best bet is to purchase the Ansi C compiler from HP, or purchase GNU C compiler (gcc) will work for you. Our developers use HP's ansi-C on our main developement server while us admins use gcc for most of our compiling.
Ye who thinks he has a lot to say, probably shouldn't.
Leandro Sales
Advisor

Re: I need an CANSI/C compiler -> HPUX

Ok... I have gcc 2.95.2, but when I'm trying to compile some source, using the make command, the make use cc to compile? I tried to change the Makefile to CC=gcc but didn't work. The make keep using cc...

Leandro.
A. Clay Stephenson
Acclaimed Contributor

Re: I need an CANSI/C compiler -> HPUX

These days I would purchase the C++ compiler which will also compile ANSI C (B3913DB) . If you also need to compile K&R C then you need to get the ANSI/C compiler B3901BA.

Your other option is to download the GNU C compiler (gcc) which is free.

If it ain't broke, I can fix that.
Kevin Wright
Honored Contributor

Re: I need an CANSI/C compiler -> HPUX

There must be somewhere else in the Makefile that is causing it to use cc..make sure gcc is in you path, and look over the makefile again. There's no guarantee it will work with gcc, but before you spend the money for the full ansi compiler, it's worth a shot.
Tom Danzig
Honored Contributor

Re: I need an CANSI/C compiler -> HPUX

Maybe you could delete your current cc link (/usr/bin/cc is probably a link to the bundled compiler) and create link your gcc compiler. Then when done, switch the link back.

HP charges separately for the ansiC developers bundle, C++, and AnsiC++. The standard C++ compiler is not Ansi C compliant. You need aC++. What a racket!
Santosh Nair_1
Honored Contributor

Re: I need an CANSI/C compiler -> HPUX

You could try setting the CC environment variable before running the make, i.e. :

CC=cc make

Also, if you've installed the gcc from HP's porting archives, make sure you have also installed binutils and I would also recommend installing the gnu make utility. Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans