Compile is report error: ' Evnet_come_to_foreground ' is not declared in this scope

Source: Internet
Author: User

compile++ thumb:game_shared <= main.cpp
jni/hellocpp/main.cpp:in function ' void Java_org_cocos2dx_lib_cocos2dxrenderer_nativeinit (jnienv*, Jobject, Jint, Jint) ':
Jni/hellocpp/main.cpp:25:10:error: ' Ccdirector ' have not been declared
Jni/hellocpp/main.cpp:27:9: Error: ' Cceglview ' is not declared in this scope
Jni/hellocpp/main.cpp:27:20:error: ' View ' is not declared in this scope
Jni/hellocpp/main.cpp:27:27:error: ' Cceglview ' is not a class or namespace
Jni/hellocpp/main.cpp:35:20:error: ' Ccdrawinit ' is not declared in this scope
Jni/hellocpp/main.cpp:36:34:error: ' Ccglinvalidatestatecache ' is not declared in this scope
Jni/hellocpp/main.cpp:38:9: Error: ' Ccshadercache ' have not been declared
Jni/hellocpp/main.cpp:39:9: Error: ' Cctexturecache ' have not been declared
Jni/hellocpp/main.cpp:40:9: Error: ' Ccnotificationcenter ' have not been declared
Jni/hellocpp/main.cpp:40:76:error: ' Evnet_come_to_foreground ' is not declared in this scope
Jni/hellocpp/main.cpp:41:9: Error: ' Ccdirector ' have not been declared
/cygdrive/e/android/ndk/android-ndk-r8e-windows-x86/android-ndk-r8e/build/core/build-binary.mk:272:recipe for Target ' OBJ/LOCAL/ARMEABI/OBJS/GAME_SHARED/HELLOCPP/MAIN.O ' failed
Make: * * * [OBJ/LOCAL/ARMEABI/OBJS/GAME_SHARED/HELLOCPP/MAIN.O] Error 1
Make: Leave directory "/cygdrive/d/mycoder/trunk/cocos2d-x/cocos2d-2.1rc0-x-2.1.2-hotfix/cocos2d-2.1rc0-x-2.1.2/testpppp/ Proj.android "

At compile time, due to the deletion of #include "HelloWorldScene.h" in Main.cpp, the above errors were not included in the inclusion of # "Cocos2d.h".

You can add # include "Cocos2d.h" to the main.cpp directly.

Compile is report error: ' Evnet_come_to_foreground ' is not declared in this scope

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.