Re: Why won't iOS app using MKMapView compile?
Re: Why won't iOS app using MKMapView compile?
- Subject: Re: Why won't iOS app using MKMapView compile?
- From: Chris Ridd <email@hidden>
- Date: Fri, 08 Jul 2011 14:10:47 +0100
On 8 Jul 2011, at 13:39, G S wrote:
> Hi all.
>
> I put an MKMapView in my UI and tried to declare an IBOutlet for it,
> but compilation fails with this error, in MKGeometry.h:
>
> "'isinf' was not declared in this scope"
>
> The line it's griping about is
>
> UIKIT_STATIC_INLINE BOOL MKMapRectIsNull(MKMapRect rect) {
> return isinf(rect.origin.x) || isinf(rect.origin.y);
> }
>
> I've imported <MapKit/MapKit.h> where I declare the MKMapView, and
> included MapKit.framework in the project.
>
> Anybody know what could be wrong? Thanks!
The man page for "isinf" says you will need to #include <math.h> and link with -lm.
Chris
_______________________________________________
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