我用cocos new了一个工程,然后直接run,是没有问题的
然后我将一些class和resources拷贝到相应的目录下,然后在xcode里add进来,然后,编译,通过,到link的时候,就出现以下错误
Undefined symbols for architecture armv7:
“LoadingScene::loadComplete(cocos2d::Texture2D*)”, referenced from:
LoadingScene::onEnter() in LoadingScene-4E16B1D519627B5B.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我看了,Build Phases->Compile Sources里已经将这些class的cpp文件加进来了
我用的是越狱的itouch 6.0.1,xcode 5.1.1做的。
有谁遇到过类似的问题吗?搞了一周了,没解决啊
