本文介绍了未解决的包容:" cocos2d.h" - Cocos2dx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我导入cocos2dx Android项目在我的月食我得到这样的警告在我的头文件

when I import the cocos2dx android project in my eclipse I get this warning on my header files

    Unresolved inclusion: "cocos2d.h"

这是为什么?它实际上缠着我。该项目编译和运行正常,但我想,要离开。谁能告诉我如何删除警告,我也想为我的C ++在Eclipse项目的智能感知功能。我有一个功能对于我的Andr​​oid的东西,但不是C ++。

Why is this? Its actually bugging me. The project compiles and runs correctly but I want that to go away. Can someone tell me how to remove that warning and also I want the intellisense feature for my c++ projects in eclipse. I have that feature for my android stuff but not for c++.

请指引我。在此先感谢:)

Please guide me. Thanks in advance :)

推荐答案

添加了cocos2d-X资源到Eclipse

Add cocos2d-x resource to your Eclipse


  • 右键单击项目,然后选择属性

  • 找到的 Java构建路径

  • 找到的链接源浏览源标签

  • 添加 $ COCOS2DX-HOME / cocos2dx /平台/安卓/ JAVA / src目录/ ,并填写 cocos2dx SRC 在文件夹名称

  • Right click your project and choose Properties
  • Find Java Build Path
  • Find Link Source Browse under Source Tab
  • Add $COCOS2DX-HOME/cocos2dx/platform/android/java/src/ and fill cocos2dx src in Folder name

参考:

这篇关于未解决的包容:" cocos2d.h" - Cocos2dx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-01 04:59