热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

可可/CCGeometry。h文件未在cocos2d3.9中找到-cocoa/CCGeometry.hfilenotfoundincocos2d3.9

WhenIamtryingtobuildmyoldcocos2.2.2gameintothecocos2d-x3.9version,amgettingcocoaC

When I am trying to build my old cocos 2.2.2 game into the cocos2d-x 3.9 version, am getting cocoa/CCGeometry.h file is not found.This file is already included in the class.

当我尝试将我的老cocos 2.2.2游戏构建到cocos2d-x 3.9版本时,我得到了cocoa/CCGeometry。未找到h文件。这个文件已经包含在类中。

1 个解决方案

#1


0  

Below link that might help you,

下面的链接可能会对你有所帮助,

http://hiltmon.com/blog/2015/08/01/simple-c-plus-plus-from-makefiles-to-xcode-builds/

http://hiltmon.com/blog/2015/08/01/simple-c-plus-plus-from-makefiles-to-xcode-builds/

(Look for Header Search Paths keyword in this page). It will show you where in your xcode editor project settings you need to go for adding header search paths.

(在此页面中查找标题搜索路径关键字)。它将向您显示在xcode编辑器项目设置中需要添加头搜索路径的位置。

But please also understand the concept behind header search paths. Basically, when you do a include in your code like below,

但也请理解标题搜索路径背后的概念。基本上,当你在你的代码中包含如下内容时,

#include "file.h"

# include“file.h”

then during build, compiler must know from where to read file.h file. Suppose this file is kept on some path like /home/anand/MyWork/files/file.h - then compiler will not find it until you specify above path (i.e. /home/anand/MyWork/files/) in your xcode settings under header search path settings.

然后在构建过程中,编译器必须知道从哪里读取文件。h文件。假设这个文件保存在诸如/home/ anand/mywork/files/file等路径上。h -那么编译器将不会找到它,直到您在xcode设置下的头搜索路径设置中指定上面的路径(例如/home/anand/MyWork/files/)。


推荐阅读
author-avatar
赤血-魔鬼
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有