Operating System - HP-UX
1825780 Members
2071 Online
109687 Solutions
New Discussion

Re: 'C' compiler on hp-ux 11.00

 
Dorth_1
New Member

'C' compiler on hp-ux 11.00

We are running on a 4 cpu L2000 with HP-UX_B.11.00_32/64 with the lastest recommended patch bundle.

Also, we are using HP C/ANSI C B.11.02.10.

We are experiencing 2 problems:
1) if a user has the UNIX95 variable in their .profile, cc will fail with error 1469 (cc cannot open file xxx.h). Once this variable is removed, it functions.

2) we are trying to suppress a warning during or compile (warning 2028) with the +w switch. Unfortunately, this does not disbale the waring even though the man page states that it should.

Any help is greatly appreciated.
2 REPLIES 2
Elmar P. Kolkman
Honored Contributor

Re: 'C' compiler on hp-ux 11.00

To go bottom up, try to use +W (capital W) instead of +w (lower case w) to suppress the warning. Or alter the code to not generate the warning anymore, of course.

As for the UNIX95: I don't see why cc complains about that. But unsetting it before starting to compile shouldn't be a real problem, is it? Perhaps putting a script in a directory that's in the PATH before the directory containing cc to call the real cc after unsetting the variable is a simple solution for this.

Good luck,

Elmar

Every problem has at least one solution. Only some solutions are harder to find.
Dorth_1
New Member

Re: 'C' compiler on hp-ux 11.00

Elmar,
Thank you for your response.

capital W *was* used and it did not function as specified.

As far as UNIX95 variable - the 'C' compiler should not fail due to the existence of an environment variable. I'd consider this a bug (if others experience the same issue).

I'm just curious if HP still supports this "c" compiler version. Any ideas?