views:

386

answers:

3

Hi there,

Well im creating an iPhone application which contains some features like Cycle routes and a Photoviewer.

For these Cycle routes im useing the Cloudmade api, and for the PhotoViewer im useing Three20's TTPhotoviewcontroller.

These Cycle routes map works perfect but i think it has todo something with the errors im getting.

I will describe 2 cases down here about what i tried and what problem i received.

Case 1: Compiling goes wrong and receiving following error :

duplicate symbol _aatan2 in /Users/wesleycoppens/Documents/MooiWest/libs/Proj4/Device/libProj4.a(aasincos.o) and /Users/wesleycoppens/Documents/MooiWest/libs/route-me/Device/libMapView.a(aasincos.o)
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

i am getting this error when i am trying to add to the Other linker flags the flag -all_load. See the image below here how my Other linker flags currently look like.

see link for image: http://i49.tinypic.com/262o7q1.png

Case 2: Compiling goes fine, app runs in simulator perfectly but receiving SIGABRT with device.

In this case i removed the flag -all_load in my Other linker flags. Now i am not receiving any compiling error, but im receiving a SIGABRT when tapping the tablerow which links to the photoviewer app.

I aint sure if i do link correctly to the Photoviewer to, so here is the part where i push the other photoview.

PhotoTest2Controller *photoViewController = [[PhotoTest2Controller alloc] init];

[self.navigationController pushViewController:photoViewController animated:YES]; [photoViewController release];

Also here another screenshot of the linker flags how they are defined in this case :

see link for image: h t t p : / / i47.tinypic.com/vhuv0z.png


Any help would be really appreciated!

A: 

I'm having the same duplicate symbol error... did you ever get a response to this?

gpasq
Yes i did but sad enough i didn't found a right solution yet, some people at the develop forums from apple did gave me some answers, here is the tread to this one : https://devforums.apple.com/thread/36463?tstart=15Greetings, Coppes
Coppes
A: 

Hi, I am using Three20 and MapView and I have also a duplicate error when I try to compile for the device with the flad "-all_load" in the target. Did you find how to get rid of this? I am out of ideas...

Ivan
A: 

Hi, finally I found a solution for this. Instead of using "-all_load" tag you can use "-force_load path_to_library/libXXX.a" in all the libraries you need except the one you get the duplicate error. It worked for me! Hope it helps.

Ivan