Re: parsekit on snow leopard
Re: parsekit on snow leopard
- Subject: Re: parsekit on snow leopard
- From: Greg Guerin <email@hidden>
- Date: Sun, 30 Aug 2009 11:01:30 -0700
Martin Hewitson wrote:
I was wondering if anyone has had occasion to compile parsekit on
snow leopard. If I set the active architecture to x86_64 and the
SDK to 10.6, then I get a bunch of errors like:
multiple methods named '-floatValue' found
warning: using '-(float)floatValue'
warning: also found '-(CGFloat)floatValue'
IIRC, a CGFloat is 64-bits when compiling for a 64-bit target. A
CGFloat is only type-identical with the C type 'float' under 32-bit
compilation. So the problem you see would also occur under 10.5 SDK
when compiling for 64-bit, and has nothing to do with Snow Leopard,
per se, but everything to do with 64-bitness.
You could test this using sizeof(float)==sizeof(CGFloat) in a
suitable conditional or assertion.
-- GG
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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