Hi Sunny, I was going through Part 1 and I found a typo, where you write:
auto scene = TouchMove::createScene()
it should end with semicolon:
auto scene = TouchMove::createScene();
Also, building and running (with cocos2d-x-3.1-rc0 May.18 2014 on a Macbook) for iOS I get this compiler error:
Undefined symbols for architecture i386:
"TouchMove::createScene()", referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/myName/myCompany/PlatformGame1/bin/debug/ios/PlatformGame1\ iOS.app/PlatformGame1\ iOS normal i386
Error running command, return code: 65
When building and running for Android I get:
jni/../../Classes/AppDelegate.cpp:32: error: undefined reference to 'TouchMove::createScene()'
collect2: error: ld returned 1 exit status
make: *** [obj/local/armeabi/libcocos2dcpp.so] Error 1
make: Leaving directory `/Users/myName/myCompany/PlatformGame1/proj.android'
Error running command, return code: 2
I didn't get these errors when I built and run the new, unmodified default project.