I am using iphone sdk 2.2.1, and cocos2d 0.8.1, and the project template are created by the installation of cocos2d 0.8.1
When I integrate Scoreloop into cocos2d, I have to set some configurations in 'Info' of the target file.
1. Additonal SDK: ~/Library/SDKs/Scoreloop/iphonesimulator.sdk
2. Other linker flags: -all_load -ObjC -lScoreloop
When I set the Additonal SDK, everything is OK, when I set "Other linker flags: -all_load -ObjC -lScoreloop" and then build, there's a "Duplicate Symbol" problem happened:
_________________________________________________________________
ld: duplicate symbol _MyGetOpenALAudioData in /Developer/MyCodes/BettysHoneymoonResort/cocostry/build/Debug-iphonesimulator/libcocos2d libraries.a(CocosDenshion.o) and /Developer/MyCodes/BettysHoneymoonResort/cocostry/build/cocostry.build/Debug-iphonesimulator/cocostry.build/Objects-normal/i386/PASoundSource.o
_________________________________________________________________
Note: "/cocostry/build/Debug-iphonesimulator/" and"/cocostry/build/cocostry.build/Debug-iphonesimulator/cocostry.build/" are default setting of build locations.
When I compile the Demo of Scoreloop alone without cocos2d, everything is OK, and cocos2d project template run well without "-Objc -lScoreloop" also
Can somebody help me out of this?