Ubuntu Eclipse, errors when trying compile

I trying compile my project, which is generated by tools/project_creator/create_project.py. But i got many errors and warning, such as:

  1. …/…/…/…/cocos2dx/cocoa/CCObject.h:60:9: warning: identifier «nullptr» is a keyword in C11
    # /usr/include/c
    /4.7/bits/c0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C 2011 standard. This support is currently experimental, and must be enabled with the std=c11 or std=gnu++11 compiler options.
    # …/…/…/…/cocos2dx/platform/CCCommon.h:58:1: warning: scoped enums only available with
    std=c
    11 or
    std=gnu++11
  2. …/…/…/…/cocos2dx/cocoa/CCGeometry.h:174:30: error: «std::function» не был декларирован
  3. …/…/…/…/cocos2dx/cocoa/CCGeometry.h:174:38: error: expected «,» or «…» before «<» token
  4. …/…/…/…/cocos2dx/actions/CCAction.h:140:41: warning: override controls (override/final) only available with std=c++11 orstd=gnu (TOO MANY WARNING LIKE THIS)
  5. e.t.c
  6. and finaly to many errors like below
  7. …/…/…/…/cocos2dx/include/CCDeprecated.h:880:94: error: «cocos2d::Texture2D::PixelFormat» is not a class or namespace
  8. …/…/…/…/cocos2dx/include/CCDeprecated.h:914:71: error: «cocos2d::Menu::State» is not a class or namespace
  9. …/…/…/…/cocos2dx/include/CCDeprecated.h:919:79: error: «cocos2d::Touch::DispatchMode» is not a class or namespace
  10. …/…/…/…/cocos2dx/include/CCDeprecated.h:924:72: error: «cocos2d::Image::Format» is not a class or namespace
  11. …/…/…/…/cocos2dx/include/CCDeprecated.h:929:112: error: «cocos2d::TransitionScene::Orientation» is not a class or namespace
  12. …/…/…/…/cocos2dx/include/CCDeprecated.h:949:67: error: «LanguageType» is not a class or namespace
  13. …/…/…/…/cocos2dx/include/CCDeprecated.h:975:88: error: «cocos2d::Application::Platform» is not a class or namespace
  14. …/…/…/…/cocos2dx/include/CCDeprecated.h:978:75: error: «ResolutionPolicy» is not a class or namespace

It’s possible compile&debug application under eclipse, without\with build.sh script?

You can create Makefile project in Eclipse. But since you’re using develop branch, you can use QtCreator: in this IDE cocos2d project can be created by copying 2 lines of code, see [[QtCreator_project_setup_on_Linux|wiki page]].

Sergey Shambir wrote:

You can create Makefile project in Eclipse. But since you’re using develop branch, you can use QtCreator: in this IDE cocos2d project can be created by copying 2 lines of code, see [[QtCreator_project_setup_on_Linux|wiki page]].

Oh, it’s nice… Thank you namesake, i’ll try to update to develop branch and use QtCreator.