PDA

View Full Version : Collect2: ld returned 1 exit status error




Cryptically
May 15, 2011, 10:36 PM
Ld "build/Debug-iphonesimulator/Cloudmade Map.app/Cloudmade Map" normal i386 cd /Users/MPDEV/Documents/cloudmade2 setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/MPDEV/Documents/cloudmade2/build/Debug-iphonesimulator -L/Users/MPDEV/Documents/cloudmade2/libs/Proj4 -L/Users/MPDEV/Documents/cloudmade2/libs/CloudMade -L/Users/MPDEV/Documents/cloudmade2/libs/route-me -F/Users/MPDEV/Documents/cloudmade2/build/Debug-iphonesimulator -filelist "/Users/MPDEV/Documents/cloudmade2/build/cloudmade2.build/Debug-iphonesimulator/cloudmade2.build/Objects-normal/i386/Cloudmade Map.LinkFileList" -mmacosx-version-min=10.6 -lMapView -lProj4 -lCloudMadeApi -ObjC -all_load -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -lsqlite3 -framework QuartzCore -lstdc++.6 -o "/Users/MPDEV/Documents/cloudmade2/build/Debug-iphonesimulator/Cloudmade Map.app/Cloudmade Map"

Undefined symbols: "_OBJC_CLASS_$_RMDBMapSource", referenced from: objc-class-ref-to-RMDBMapSource in cloudmade2ViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status

Hi I'm new to iphone programming and I've came across to this problem. How do i solve this? Tried looking around but found no answer how to solve it.



gnasher729
May 16, 2011, 01:56 AM
The linker is looking for the implementation of a class "RMDBMapSource" and cannot find it. So where is it? Does it have an @implementation? Is it a part of your project?

Cryptically
May 16, 2011, 02:36 AM
The linker is looking for the implementation of a class "RMDBMapSource" and cannot find it. So where is it? Does it have an @implementation? Is it a part of your project?

I've the RMDBMapSource header and implementation file in the route-me folder.I'm not so sure about the implementation as this is my first time doing c and iphone programming.

Would it be possible for you to help me take a look at my proj if possible.

http://www.mediafire.com/file/yfb0h1mb9hi1bg2/cloudmade2.zip