I am trying to compile a C program with function calls on a HP-UNIX.
I used std ANSI-C features while doing the function call. But while
compiling, it gave an error saying that this format is used in ANSI alone
and not applicable on this machine.
Can somebody please tell me what I need to do to compile and run this
on HP-UNIX? Should I change the format in the function call and if so,
how do I do it, or while compiling can I use a flag to indicate to
use the non-ANSI implementation?
I hope my question was clear, and would appreciate if somebody would
shed some light on this..
Thanks a bunch!!
--- Code follows:
float rad, circ;
float calculate(float rad);
circ = calculate(rad);
float calculate(float rad)Quote:}
c = 2 * rad;
ps: I have left out the trivia part and just quoted the necessary lines!!