Neildh
02-02-2003, 08:59 AM
Hi
I have just downloaded the UNIX version of NR and I am installing on an HP workstation HP-UX 11.10 and using HP's ANSI C compiler.
I get this error during compile phase when creating the libs.
cc: "broydn.c", line 25: error 1584: Inconsistent type declaration: "fmin".
cc: "broydn.c", line 25: error 1711: Inconsistent parameter list declaration for "fmin".
cc: "broydn.c", line 49: error 1621: Too few arguments for fmin.
cc: "broydn.c", line 49: error 1718: Types are not assignment-compatible.
cc: "broydn.c", line 49: warning 563: Argument #1 is not the correct type.
cc: "broydn.c", line 126: warning 604: Pointers are not assignment-compatible.
cc: "broydn.c", line 126: warning 563: Argument #10 is not the correct type.
*** Error exit code 1
This affects both broydn.c and newt.c with the same error from newt.c subs newt.c for broydn.c in the above. The commonalilty is the function fmin. The error is fatal in both cases and the make terminates. All other routines compile without problems. Any one got an ideas about this and what the solution might be. I have a feeling it needs a compiler directive but I can't see from HP's manual what that might be.
Neil
:confused:
I have just downloaded the UNIX version of NR and I am installing on an HP workstation HP-UX 11.10 and using HP's ANSI C compiler.
I get this error during compile phase when creating the libs.
cc: "broydn.c", line 25: error 1584: Inconsistent type declaration: "fmin".
cc: "broydn.c", line 25: error 1711: Inconsistent parameter list declaration for "fmin".
cc: "broydn.c", line 49: error 1621: Too few arguments for fmin.
cc: "broydn.c", line 49: error 1718: Types are not assignment-compatible.
cc: "broydn.c", line 49: warning 563: Argument #1 is not the correct type.
cc: "broydn.c", line 126: warning 604: Pointers are not assignment-compatible.
cc: "broydn.c", line 126: warning 563: Argument #10 is not the correct type.
*** Error exit code 1
This affects both broydn.c and newt.c with the same error from newt.c subs newt.c for broydn.c in the above. The commonalilty is the function fmin. The error is fatal in both cases and the make terminates. All other routines compile without problems. Any one got an ideas about this and what the solution might be. I have a feeling it needs a compiler directive but I can't see from HP's manual what that might be.
Neil
:confused: