[SOLVED]Re: Using math.h
[SOLVED]Re: Using math.h
- Subject: [SOLVED]Re: Using math.h
- From: Nelson Santos <email@hidden>
- Date: Wed, 14 Mar 2007 11:16:45 -0400
Thanks everyone. Dumb mistake on my part.
pow was defined earlier for something else, as some of you
mentioned. D-Oh!
Nelson
On Mar 14, 2007, at 10:38 AM, Andy Lee wrote:
On Mar 14, 2007, at 10:22 AM, Nelson Santos wrote:
double a = 10;
double b = 3;
double c = pow(a, b);
But when compiling my app, I get a compile error "called object
'pow' is not a function".
I've added #import <math.h> to the top of my .m file. But still
nothing.
What you did works for me. I don't suppose you're declaring
something else called "pow" anywhere in your code?
--Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden