Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: Error with ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 25635 of 28006
Post > Topic >>

Re: Error with cc sunstudio compiler

by Ian Collins <ian-news@[EMAIL PROTECTED] > Apr 16, 2008 at 10:51 AM

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.
 




 6 Posts in Topic:
Error with cc sunstudio compiler
happytoday <ehabaziz20  2008-04-15 15:36:06 
Re: Error with cc sunstudio compiler
Ian Collins <ian-news@  2008-04-16 10:51:56 
Re: Error with cc sunstudio compiler
Andrey Tarasevich <and  2008-04-15 15:55:03 
Re: Error with cc sunstudio compiler
Peter Nilsson <airia@[  2008-04-15 15:58:59 
Re: Error with cc sunstudio compiler
jt@[EMAIL PROTECTED] (Je  2008-04-15 23:13:28 
Re: Error with cc sunstudio compiler
Nikos Chantziaras <rea  2008-04-16 02:31:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 11:13:52 CST 2008.