error: MKCoordinateRegionMakeWithDistance


Despite checking and rechecking my code with the book and with your Download Example, I keep getting this build error:

Undefined symbols:
"_MKCoordinateRegionMakeWithDistance", referenced from:
-[WhereamiAppDelegate mapView:didAddAnnotationViews:] in WhereamiAppDelegate.o

I’m using the iPhoneSimulator 4.0 Does that sort of thing make a difference?



You’ll have to add the mapkit framework to your project.



Your suggestion worked just fine. Thanks.

#import <MapKit/MapKit.h> was already all over the place, in several modules. But apparently it has to be addedto the project via the method you suggested in pp. 62-63 of the book.



Yup, be sure to check out the section “For the More Curious: Compiler and Linker Errors” at the end of chapter 4 - it’ll give a more in depth discussion of why that is the case.