When update Ogre source to the stable version 1.9 with Mac osx 10.7,Xcode 4.6.3, CMake 2.8.10.2, I get this error
Reference to 'FileInfo' is ambiguous
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Finder.h:236:8: Candidate found by name lookup is 'FileInfo'
Ogre-1.9-mercurial/OgreMain/include/OgreArchive.h:53:12: Candidate found by name lookup is 'Ogre::FileInfo'
it is about include the Ogre.h or OgreWindowEentUtilities.h in the source code, but it is strange because it had never occured before.
I had googled and tried a lot, but all failed to solve it.
but finally, I got it.
remove any defination of using namespace Ogre; in any header file that is not limited its scope.
I had added the this line of code in a header file, and the defination is not limited in that class, then I include it in some other header files, then included those header files in some more header files ..
so at the end, I had included a header has a defination of using namespace Ogre; and then I include a Ogre.h
the Ogre.h include OgreWindowEventUtilities.h, the OgreWindowEventUtilities.h, then include a Carbon.h, and include to the FInder.h, in this header file, there is a defination struct FileInfo, while the Ogre name space has a defination FileInfo too,. And there is a defination using namespace Ogre; ,so these two defination are coflicted.
experience I get from this class.
1. whenever use this command: using namespace, limits its active scope
2. Don't jump to on googling and googling before think deeply first.
相关推荐
ogre初级指南:新手帮助手册
Caelum is an open-source sky rendering library for OGRE
【Ogre开发】之二:第一个Ogre程序源码 要将工程环境重新配置一下 否则编译会通不过 具体方法参见我的博客 http://blog.csdn.net/cowboylym/article/details/9745823
ogre-common:所有ogre脚本文件中都存在语法 食人魔材料:特定于材料的语法 食人魔粒子:特定于粒子的语法 食人魔合成器:特定于合成器的语法 ogre-overlay:覆盖特定的语法 ogre-fontdef:特定于fontdef的语法 去做...
[OGRE]备注教程(01):一个锃光瓦亮的大脑袋。 源码连接:http://blog.csdn.net/pleasecallmewhy/article/details/12128413
食人魔样本Ogre3D 项目模板是准备使用(制作 fork 和 pull requests 以使其可用)在实验项目中学习 Ogre3D,具有: 面向 Ogre3D 1.9、1.10(对于 Ogre3D 2.1,请看) OIS 鼠标和键盘基本的相机控制器(来自 ...
OGRE中文帮助手册: 将网上的chm转成pdf,希望有用, 无标签
ogre的api文档 chm版
Ogre初级和中级CHM教程和代码 OGRE学习交流超级群: 110490227 基础教程一 场景管理器,场景节点和实体 基础教程二 摄影机,阴影和光照处理 基础教程三 天空,地面和雾化处理 基础教程四 帧监听器和非缓冲输入 ...
整理了一份OGRE材质脚本的快速参考文档
OEGUI是一个完全基于Ogre1.7的GUI组件.这个组件在Ogre的OverlayElement的基础上,添加了功能,实现了一个轻量级的GUI解决方案.
OGRE(Object-Oriented Graphics Rendering Engine,即:面向对象图形渲染引擎)是一个用C++开发的面向场景、非常灵活的3D引擎,它旨在让开发人员更容易、更直接地利用硬件加速的3D图形系统开发应用。这个类库隐藏了...
该框架程序用于将嵌入到3ds中的ogreMax插件所产生的scene文件,导入到ogre中。方法:将压缩文件models文件释放到$(ogre_home)\media\models下即可。
打包下载,资料包括(非常适合想分析ogre结构的朋友): Ogre基础教程 ogre材质系统分析.pdf ogre场景组织分析.pdf OGRE的消息机制.pdf Ogre的渲染系统(Rendering System).pdf OGRE分析之场景管理.pdf OGRE分析之...
OGRE导入mesh的过程, 展示了OGRE读取文件,获得文件头部的格式信息,得到顶点和法线信息,然后读取数据并显示的过程
书名:Pro OGRE 3D Programming 语言:英文 出版时间:2006 简介:介绍OGRE引擎的一本书,是OGRE官网(www.ogre3d.com)推荐的一本书,缺点是比较老了,优点是对OGRE的structure讲的很详细
This is a brief, but detailed guide to use the OGRE SDK and the OGRE SDK AppWizard. Remember: You don't need anything but Visual C++, the OGRE SDK and the AppWizard. And you don't need to configure ...
RGB_to_Ogre RGB转Ogre颜色转换器 在Ogre开发游戏过程中经常要用到RGB颜色转换Ogre中的颜色值,这个工具方便转换,内含RGB取色表。
This book is an example-driven introduction to OGRE 3D. Each example shows some new features and you learn step-by-step to create complex scenes with different effects using OGRE 3D. After several ...
学习ogre非常好的资料,本人从网上搜集下来,特贡献出来供大家分享,此文章对我的学习帮助很大,希望对大家有所帮助.