happytoday wrote:
> I compiled that program under turbo C without any problems but with
> sunstudi I found those errors:
>
> "pnt02ma1.c", line 37: warning: implicit function declaration: system
> "pnt02ma1.c", line 58: operands must have arithmetic type: op "*"
> "pnt02ma1.c", line 58: assignment type mismatch:
> pointer to float "=" double
> "pnt02ma1.c", line 59: operands must have arithmetic type: op "/"
> "pnt02ma1.c", line 60: operands have incompatible types:
> pointer to float "-" double
> "pnt02ma1.c", line 61: operands must have arithmetic type: op "/"
> "pnt02ma1.c", line 62: operands have incompatible types:
> pointer to float "-" double
> "pnt02ma1.c", line 62: warning: improper pointer/integer combination:
> op "="
> cc: acomp failed for pnt02ma1.c
>
So? These are all valid diagnostics, study them and fix the code.
>
> void conversion(m,y,f,i)
> float *m;
> int *y,*f,*i;
> {
Why are you using obsolete K&R functions?
--
Ian Collins.


|