适用于iOS 7的Ogre3d 1.9 + xcode 6.1给出错误:使用未声明的标识符'nullptr_t';你是说'nullptr'吗?

时间:2014-12-06 21:42:43

标签: c++ xcode6.1 ogre3d

我尝试从网站上为iOS SDK编译Ogre3d 1.9 stable 但它给了我错误,我在xcode中指出使用libc ++和c ++ 11 正如它在此指出:http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Building+From+Source+-+iPhone
现在我得到那些错误(我猜增​​强相关)

In file included from /Users/foo/Documents/3d/Ogre3d/OgreSDK/Samples/Browser/src/SampleBrowser.cpp:42:
In file included from /Users/foo/Documents/3d/Ogre3d/OgreSDK/Samples/Browser/include/SampleBrowser_iOS.h:40:
In file included from /Users/foo/Documents/3d/Ogre3d/OgreSDK/Samples/Browser/include/SampleBrowser.h:31:
In file included from include/OGRE/SampleContext.h:32:
In file included from include/OGRE/OgreLogManager.h:32:
In file included from include/OGRE/OgrePrerequisites.h:32:
In file included from include/boost/tr1/tr1/string:16:
In file included from include/boost/tr1/detail/config_all.hpp:151:
In file included from include/boost/tr1/tr1/utility:21:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:157:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tuple:16:
In file included from include/boost/tr1/tr1/type_traits:22:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:297:49: error: use of undeclared identifier 'nullptr_t'; did you mean 'nullptr'?
template <>          struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
                                                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:297:49: error: template argument for template type parameter must be a type
template <>          struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
                                                ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:296:17: note: template parameter is declared here
template <class _Tp> struct __is_nullptr_t_impl       : public false_type {};
                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:507:52: error: use of undeclared identifier 'nullptr_t'; did you mean 'nullptr'?
template <> struct _LIBCPP_TYPE_VIS_ONLY is_scalar<nullptr_t> : public true_type {};
                                                   ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:507:52: error: template argument for template type parameter must be a type
template <> struct _LIBCPP_TYPE_VIS_ONLY is_scalar<nullptr_t> : public true_type {};
                                                   ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:500:17: note: template parameter is declared here
template <class _Tp> struct _LIBCPP_TYPE_VIS_ONLY is_scalar

这里有什么问题?

0 个答案:

没有答案