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: Greg Parker <email@hidden>
- Date: Fri, 8 Jul 2011 19:11:24 -0700
On Jul 8, 2011, at 6:58 PM, G S wrote:
>> You should file a bug report anyway, because MapKit's headers should be compatible with Objective-C++.
>
> I will. The problem is that they're just going to bounce it back to
> me with "please provide a project that demonstrates this", and since I
> don't know where cmath is coming in, I don't know how to create a
> project to repro the problem. I guess I'll just have to hack away at
> mine and turn that in when I have the time.
>
> I took the MapCallouts example project and changed its controller
> file's name extension to mm, but it still compiled. BUT, if I put
>
> #import <cmath>
>
> at the top, BINGO. I get the isinf error. So Kyle's analysis was
> right on the money.
Well, that sounds like a reproducing project to me.
> Is there some kind of include-file-chaining analysis tool that works
> on Objective-C files? I'd think this would be one of the most useful
> programmer's tools that an IDE could offer.
If you preprocess your source file, the output will show every include and where it came from. Not easy to interpret, but it's all there.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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