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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to