iphone - A static library was omitted from linking -
i have problem linking static library
i added static library build target. , added linked library list.
but link error occurred. think there not -lcocosdenshion flag in command.
and set "valid architectures" "valid_archs = armv6 armv7 i386" build targets.
here full log event. need help. thank help!
ld /users/tae1560/library/developer/xcode/deriveddata/helloworld-avkpbeubpocaklejnbukdyudocwz/build/products/debug-iphonesimulator/helloworld.app/helloworld normal i386 cd /users/tae1560/documents/projects/daegu/helloworld/ios setenv macosx_deployment_target 10.6 setenv path "/applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/usr/bin:/applications/xcode.app/contents/developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator5.1.sdk -l/users/tae1560/library/developer/xcode/deriveddata/helloworld-avkpbeubpocaklejnbukdyudocwz/build/products/debug-iphonesimulator -f/users/tae1560/library/developer/xcode/deriveddata/helloworld-avkpbeubpocaklejnbukdyudocwz/build/products/debug-iphonesimulator -filelist /users/tae1560/library/developer/xcode/deriveddata/helloworld-avkpbeubpocaklejnbukdyudocwz/build/intermediates/helloworld.build/debug-iphonesimulator/helloworld.build/objects-normal/i386/helloworld.linkfilelist -mmacosx-version-min=10.6 -xlinker -objc_abi_version -xlinker 2 -xlinker -no_implicit_dylibs -d__iphone_os_version_min_required=40000 -framework foundation -framework uikit -framework coregraphics -lcocos2d -framework opengles -lxml2 -lz -framework quartzcore -o /users/tae1560/library/developer/xcode/deriveddata/helloworld-avkpbeubpocaklejnbukdyudocwz/build/products/debug-iphonesimulator/helloworld.app/helloworld undefined symbols architecture i386: "cocosdenshion::simpleaudioengine::sharedengine()", referenced from: episode1scene::init() in episode1scene.o episode2scene::init() in episode2scene.o episode3scene::init() in episode3scene.o episode4scene::init() in episode4scene.o episode5scene::init() in episode5scene.o episode6scene::init() in episode6scene.o menuscene::init() in menuscene.o ... "cocosdenshion::simpleaudioengine::playbackgroundmusic(char const*, bool)", referenced from: episode1scene::init() in episode1scene.o episode2scene::init() in episode2scene.o episode3scene::init() in episode3scene.o episode4scene::init() in episode4scene.o episode5scene::init() in episode5scene.o episode6scene::init() in episode6scene.o menuscene::init() in menuscene.o ... ld: symbol(s) not found architecture i386 clang: error: linker command failed exit code 1 (use -v see invocation)
did try manually adding linker flags ?
if adding doesn't help, might want make sure file in correct place, , add it's path header search path !
if doesn't work either, can drag in cocosdenshion library source code , on whole issue. might not want.
Comments
Post a Comment