Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-28-2010, 11:21 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 2
jwrichiv is on a distinguished road
Default ViewController.o File Errors

Forgive me if this has already been addressed, but...

I am developing my first, to-release, app and the final step is a mapping step that will find the users location and map out a route to a predetermined address. All worked fine until I started adding in the Core Location code. After compiling, i get the errors below. Where are the ".o" files? How do I correct their deficiencies?

Undefined symbols:
"_kCLDistanceFilterNone", referenced from:
_kCLDistanceFilterNone$non_lazy_ptr in ContactViewController.o
(maybe you meant: _kCLDistanceFilterNone$non_lazy_ptr)
"_OBJC_CLASS_$_CLLocationManager", referenced from:
objc-class-ref-to-CLLocationManager in ContactViewController.o
"_kCLLocationAccuracyBest", referenced from:
_kCLLocationAccuracyBest$non_lazy_ptr in ContactViewController.o
(maybe you meant: _kCLLocationAccuracyBest$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status

Any help, even a gentle nudge in the right direction will be greatly appreciated. Thanks.

Last edited by jwrichiv; 10-28-2010 at 11:26 PM.
jwrichiv is offline   Reply With Quote
Old 10-29-2010, 12:10 AM   #2 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 651
kapps11 is on a distinguished road
Default

dude i never understand those errors either, cuz it just happens theres nothing really to cause it. i just kinda equate it with xcode just crapped its pants. try clean all targets, and then if that doesnt work, what ive had to resort to in the pst is creating a new project and manually adding all of the old files to that new project. really stupid lol... maybe somebody else out here has a real solution???
kapps11 is offline   Reply With Quote
Old 10-29-2010, 12:53 AM   #3 (permalink)
Pro. Game Developer
iPhone Dev SDK Supporter
 
Join Date: Feb 2009
Location: żLa Islas Hermosas?
Posts: 2,176
Kalimba is on a distinguished road
Default

I suppose "xcode just crapped its pants" could be the reason... but errors like that usually indicate that a framework is missing from your project.

When you say "I started adding in the Core Location code", I'm assuming you're talking about source code. But have you added the framework(s) that this new code links against?

Also, the ".o" files are the intermediate files that the compiler produces as output from compiling a ".m" (or ".c", or ".cpp" I believe) source file. Once all of the source files have been compiled into .o files, the linker is then put in charge to make all of the appropriate connections. If a framework (aka "library") hasn't been added to the project, the linker can't make the connections and spits out error messages -- just like the ones you've posted.
__________________
~~ Word Flurry ~~ App Store / Website / Facebook
Kalimba is offline   Reply With Quote
Old 11-02-2010, 09:12 PM   #4 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 2
jwrichiv is on a distinguished road
Default

kapps - ive had to resort to in the pst is creating a new project and manually adding all of the old files to that new project

I've done this before as well, but I have gotten tired of that and this has turned into a huge project. Super time consuming, but it is looking like that is where I am heading.

Kalimba - When you say "I started adding in the Core Location code", I'm assuming you're talking about source code. But have you added the framework(s) that this new code links against?

I have added the "#import <CoreLocation/CoreLocation.h>" to my .h file, is there more to the code linking than that?
jwrichiv is offline   Reply With Quote
Old 11-02-2010, 10:01 PM   #5 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 651
kapps11 is on a distinguished road
Default

yes there is, you need to actually go and add it the framework to your project. its something like Project -> add to project -> add framework to project. or something like that i dont remember. And that probably is the reason im just not smart enough to figure that out lol. but ill remember that in the future!
kapps11 is offline   Reply With Quote
Reply

Bookmarks

Tags
.o file, cllocation, location

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 327
12 members and 315 guests
7twenty7, chiataytuday, condor304, Creativ, Domele, dreamdash3, laureix68, LEARN2MAKE, mistergreen2011, mottdog, palme2elie, Paul Slocum
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,660
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, laureix68
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:23 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0