★ TouchArcade needs your help. Click here to support us on Patreon.

Use cocos2d integrate Plus+ problem

03-10-2010, 08:13 AM
#1
Joined: Jan 2010
Posts: 91
Use cocos2d integrate Plus+ problem

I found when I did this step add "-lngplatform" to "other linker flags" field.

- In the "other linker flags" field, add the following: -ObjC -lngplatform

I got a error:

Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 failed with exit code 1

Any suggestion?
More detail about the error message:
03-10-2010, 08:40 AM
#2
Im not sure, but did you add a comma after the -ObjC entry?
03-10-2010, 09:39 AM
#3
Joined: Jan 2010
Posts: 91
Quote:
Originally Posted by Jack Shiels View Post
Im not sure, but did you add a comma after the -ObjC entry?
Do you use both cocos2d and Plus+?

Yes,I did.
The detail error message is:

Ld /Users/phoenixreanimation/Desktop/REANIMATION/IPhone/Codebuildout/Debug-iphonesimulator/Plus.app/Plus normal i386
cd /Users/phoenixreanimation/Desktop/REANIMATION/IPhone/app/Plus
setenv MACOSX_DEPLOYMENT_TARGET 10.5
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 /var/folders/8P/8PikHhlbFu8mDES61+zc8E+++TI/-Caches-/com.apple.Xcode.501/CompositeSDKs/iphonesimulator-iPhoneSimulator3.0-flutncnjblzcqieribpkhxzdmhpn -L/Users/phoenixreanimation/Desktop/REANIMATION/IPhone/Codebuildout/Debug-iphonesimulator -L/Users/phoenixreanimation/Desktop/REANIMATION/IPhone/app/Plus -F/Users/phoenixreanimation/Desktop/REANIMATION/IPhone/Codebuildout/Debug-iphonesimulator -filelist /Users/phoenixreanimation/Desktop/REANIMATION/IPhone/Codebuildout/Plus.build/Debug-iphonesimulator/Plus.build/Objects-normal/i386/Plus.LinkFileList -mmacosx-version-min=10.5 -all_load -ObjC -framework CoreGraphics -framework Foundation -framework OpenGLES -framework QuartzCore -framework UIKit -framework AudioToolbox -framework OpenAL -framework AVFoundation -framework AddressBook -framework MediaPlayer -framework MessageUI -lsqlite3 -framework SystemConfiguration "-lcocos2d libraries" -o /Users/phoenixreanimation/Desktop/REANIMATION/IPhone/Codebuildout/Debug-iphonesimulator/Plus.app/Plus

ld: duplicate symbol _NGCGContextAddRoundedRect in /Users/phoenixreanimation/Desktop/REANIMATION/IPhone/Codebuildout/Debug-iphonesimulator/libcocos2d libraries.a(NGDrawing-A491E8C949386E3E.o) and /Users/phoenixreanimation/Desktop/REANIMATION/IPhone/Codebuildout/Debug-iphonesimulator/libcocos2d libraries.a(NGDrawing-DA7D8762376E6D9F.o)
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
03-13-2010, 04:28 PM
#4
Joined: Feb 2010
Posts: 11
-all_load

try removing the -all_load from your other linker flags