I am trying to create a CLLocation object using both init methods, but without creating or giving an error. Below are the lines of code:
CLLocationCoordinate2D locCor = userLoc.coordinates;
CLLocation * locloc = [[CLLocation alloc] initWithLatitude: userLoc.coordinate.latitude longitude: userLoc.coordinate.longitude;
Below is the error that I am getting
"_ OBJC_CLASS _ $ _ CLLocation" referenced by:
objc-class-ref-to-CLLocation in MyMap.o
ld: character not found
collect2: ld returned 1 exit status
Please help, I do not know why this is happening. I am using Xcode version 3.2.4. Is this somehow related to the version?
Thanks in advance.
iphone
Amarpreet
source share