• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why won't iOS app using MKMapView compile?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Why won't iOS app using MKMapView compile?
      • From: G S <email@hidden>
References: 
 >Why won't iOS app using MKMapView compile? (From: G S <email@hidden>)

  • Prev by Date: Linebreaks ignored in custom cell
  • Next by Date: Re: Why won't iOS app using MKMapView compile?
  • Previous by thread: Why won't iOS app using MKMapView compile?
  • Next by thread: Re: Why won't iOS app using MKMapView compile?
  • Index(es):
    • Date
    • Thread