1833757 Members
2749 Online
110063 Solutions
New Discussion

HP-UX/CC Ansi C

 
SOLVED
Go to solution
Mauro_8
Frequent Advisor

HP-UX/CC Ansi C

Hi,

I??m having a problem ...
I bought HP C/Ansi C three years ago but know I bought another HP workstation without Ansi C and I trying to avoid buying another Ansi C. I just need to download this gcc and use it instead of HP-UX cc and GNU make instead HP-UX make, is it ? Can I keep the Makefile ? Do you think I am going to have trouble using gcc instead of HP-UX CC ?

Thanks,
Mauro
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: HP-UX/CC Ansi C

gcc will work but you are going to have to make some changes to your makefiles. The best answer would be to have each makefile reference
an include file to set $(CC), $(CCFLAGS), $(CCOPTS), and any desired library/linker flags as well. The include files would be unique to the two platforms but everything else would remain the same.
If it ain't broke, I can fix that.
hpuxrox
Respected Contributor

Re: HP-UX/CC Ansi C

Clay is correct.

Also, make sure you download and install the recent version of binutils. I have seen many posts to this forum because they did not have the correct version of "as" and their compile failed.

Jack Werner
Frequent Advisor

Re: HP-UX/CC Ansi C

Hello,
I am in the process of down-loading the gcc "C" compiler. First thing I discovered is I need a "C" compiler to install the gcc compiler. A Catch-22, since I need a "C" compiler which is why I am trying to install the gcc compiler. I was directed to download a preconfigured executable gcc compiler. I found one at ucla.edu for rs6000 aix4.1 which is the HW platform I need a "C" compiler for. Good luck. HP-UX may come with a native "C" compiler, I honestly don't remember.
i'm retired