I don't think HP C is ANSI compliant. I'm not sure if they offer it as an add-on package. You could always check out <a href="http://gcc.gnu.org">GCC</a> as a widely-used replacement...
I am using an aCC-1.23 compiler for compiling this code. Still is doesnt help much. An the code I am try to compile is the GDB source downloaded from GNU site for HP-UX. So, I dont expect errors in the code either.
If it is a source code by GNU, then there is all the possibility that there is a file called makefile...
if that exists, then all you have to do is...
$>make makefile
I second the motion of PxT..... whenever I work in UNIX shops, one of the first tasks I accomplish is to create a robust GCC development environment. This is true for HP-UX, Solaris, and all other UNIX environments that do not come with GCC, by default.
After you build binaries in the GCC development environment, you can move them to production and other machines as your local rules and regulations on using this code-base apply.