Operating System - HP-UX
1835426 Members
2535 Online
110078 Solutions
New Discussion

Re: C/ANSI C not compiling after installing hpux 11

 
TMcB
Super Advisor

C/ANSI C not compiling after installing hpux 11

Hi everyone

I have installed HPUX 11.00 on a test server and have installed C/ANSI C.
Our code which we copied from our 10.20 server is no longer compiling.

The 2 versions of ANSI C are :
B3900AA-APZ (b.10.20.02) compiles OK
B3901BA (b.11.00) not compiling

We are receiving the following error messages :
warning 527: Integral value implicitly converted to pointer in assignment.
error 1522: Cannot initialize a pointer with an integer constant other than zero.
error 1523: Too many initializers.

The code and environment settings are the same as the 10.20 server where our code compiles without errors.

Is there anything I need to change for the new version?

Thanks
3 REPLIES 3
Claudio_17
Frequent Advisor

Re: C/ANSI C not compiling after installing hpux 11

TMcB
Super Advisor

Re: C/ANSI C not compiling after installing hpux 11

Thanks for the reply.
I see what the error messages mean, but I just want to know if I have to change all my code which compile OK on HPUX 10.20 version.

After upgrading both the OS and ANSI/C version, do you have to re-write all your code.

Thanks
Mehdi_1
Regular Advisor

Re: C/ANSI C not compiling after installing hpux 11

Hi

I don't think you have to re-write all your code, but it seems you have to do some of it. Some of these error may have been ignored on 10.20 ( they maybe only a warning on 10.20), but 11.00 won't ignore them. you must note that you are using different compiler then the one on 10.20. You may even manage to compile it using gcc ( have you test that ? ).
If you want to use hp 11.00 ansi C you need to change the code.


__Mehdi