1820124 Members
2989 Online
109619 Solutions
New Discussion юеВ

compilatD1on errors

 
Irfan Guder
New Member

compilatD1on errors

I am working with HP UX 11 and trying to compile some source with cc_bundled. I get errors wherever the source is using tydef signed char, tydef signed ??nt and extern sword etc.

I do not get these when I use aCC.

What could be the reason?

5 REPLIES 5
Olav Baadsvik
Esteemed Contributor

Re: compilatD1on errors


HI,

The bundled c-compiler is there primarily
for making the kernel.
It is not intended for regular program
development.
It is not an ansi-c compiler.
If your code is ansi-c you should buy
the ansi-c compiler from HP.

Regards
Olav
Hartmut Lang
Trusted Contributor

Re: compilatD1on errors

cc_bundled is not ANSI.
For ANSI C code try aCC or gcc.

You can get a precompiled depot (read to install) of gcc from:
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.1/

Hartmut
Irfan Guder
New Member

Re: compilatD1on errors

Hi,

Thanks for your reply. It was useful info.

I used aCC too and got the errors. Quite a few lines wre in old style and c++ complained. A list is enclosed.

Kailash
Hartmut Lang
Trusted Contributor

Re: compilatD1on errors

It seems your aCC doent not like the non-ANSI C-code.
I'm not familiar with aCC, but there should be an option to tell aCC to accept non-ANSI (e.g. K&R) C-code.
Check the manual for it!

Hartmut
A. Clay Stephenson
Acclaimed Contributor

Re: compilatD1on errors

By design, aCC does not speak K&R. It speaks ANSI C and C++. If you want to do ANSI/C and K&R the you must purchase the ANSI/C compiler; it does not speak C++. Thus, if you need K&R C, ANSI C and C++, you must purchase both compilers.
If it ain't broke, I can fix that.