Where your error list says this: "line 540: error 1705: Function prototypes are an ANSI feature."
is your clue. You need the ANSI C compiler not included with hp-ux. Before everyone jumps up and says "get gcc for free", let me say that won't compile either, I've tried it. -Mark
