1837179 Members
2509 Online
110113 Solutions
New Discussion

Re: gcc on hp-ux 10.10

 
cuma
New Member

gcc on hp-ux 10.10

Can anyone tell me how to
install gcc on hp-ux 10.10

would be rather thankful if you could help me.
thank you in advance
you can only expect a lot if you pput a lot in
3 REPLIES 3
Cheryl Griffin
Honored Contributor

Re: gcc on hp-ux 10.10

Start here:
http://hpux.cae.wisc.edu/

Use gcc in the search box
This will lead you to a link for gcc version 2.95.2

It has a Readme and man pages.
However there are versions for 10.20 and 11.00. There is also the HP-UX Source Code which is gzipped.
"Downtime is a Crime."
Anthony deRito
Respected Contributor

Re: gcc on hp-ux 10.10

cuma,

Am I assuming that you are having problems with the HP cc compiler? A common problem is that the standard HP Unix 'cc' compiler does not understand ANSI conventions as its default behaviour. By passing it certain command line options, it will act like a standard ANSI compiler. To compile a program in ANSI, invoke 'cc' as follows:

cc -Aa -D_HPUX_SOURCE ansi-prog.c

Where ansi-prog.c is the name of your C program.

Tony

Stefan Farrelly
Honored Contributor

Re: gcc on hp-ux 10.10


Once youve downloaded it you may have to gunzip or uncompress the tar archive first, then extract the tar archive to a directory somewhere, and it will create lots of files. Look for a file called README which you should read first, then a file called INSTALL which describes the commands needed to install it (usually> sh configure
then> make )
Dont forget to downoad and install any dependencies first, eg. binutils
Im from Palmerston North, New Zealand, but somehow ended up in London...