Cannot include "CC Files in HelloWorld in version 3.0 alpha. OS X

  1. check out version 3.0alpha from GitHUB.
  2. compile all libs using cocos2d_libs.xcodeproj
  3. run: ./create-multi-platform-projects.py p Hellok com.xxx.Hello -l cpp
  4. open `HelloCPP.xcodeproj` from `projects/Hello/`
  5. Build and it builds fine.
  6. edit HelloWorldScene.h and add: `#include “CCActionInterval.h”` but it can be anything…`CCSprite.h`, etc
  7. You cant, you get a compiler error as the symbol is unknown.

So I removed the cocos2d linked libraries and UIKit, OpenGLES, as they were all red and added them back, now black, but still cannot `include` and `CC……h` files.

I’m still not having luck with this. I guess I can always just add the cocos2d-x files to my XCode project like I was doing for 2.1.5.

I think you can only include cocos2d.h.

Hi Minggo,

So we dont doCocos2D-X includes anymore? just `cocos2d.h` where we need to use Cocos2D-X functionality?

cocos2d.h includes all needed header files. If you want to include wanted header file, such as CCSprite.h, you should set correct search path in Xcode project.