1827452 Members
4096 Online
109965 Solutions
New Discussion

C/ANSI C product

 
SOLVED
Go to solution
Carles Vila_1
Occasional Contributor

C/ANSI C product

Hi,
I try to make a shared library with
the compiler cc in HP-UX 10.20 machine.

I write:
cc -c square.c -o square.o +z
but the answer is:
The +z option is available only with the C/ANSI C product;ignored

There is another c compiler to make
shared libraries?
6 REPLIES 6
Stefan Farrelly
Honored Contributor

Re: C/ANSI C product


HP-UX comes with a standard very basic C compiler which is used to build the kernel and write simple C programs. For anything more complex you need to purchase HP's ANSI/C compiler or download the free GNU C Compiler and install them.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Carles Vila_1
Occasional Contributor

Re: C/ANSI C product

Where I can find this compiler?

Thanks.
Stefan Farrelly
Honored Contributor
Solution

Re: C/ANSI C product


Heres the free GNU C compiler for HP-UX;

http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-2.95.2/
Im from Palmerston North, New Zealand, but somehow ended up in London...
Alex Glennie
Honored Contributor

Re: C/ANSI C product

For Gnu C & C++ compilers look at http://hpux.connect.org.uk/hppd/search.html and search for gcc-2.95.2.

As to the HP Products .... these are purchaseable and shipped on the applications CD's
Mauro_8
Frequent Advisor

Re: C/ANSI C product

Hi,

I??m having the same 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
harry d brown jr
Honored Contributor

Re: C/ANSI C product