没有命名空间“STD”命名为“前进”成员 [英] No member named 'forward' in namespace 'std'

查看:230
本文介绍了没有命名空间“STD”命名为“前进”成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在X code,我最近制造和测试,使用升压处理库。我刚刚成立的IDE,codeD的基础工程中取出,并建立很好。

In XCode, I recently made and tested a processing library that uses boost. I just set up a basic project in the IDE, coded away, and it builds fine.

我现在想使用该库在另一个应用程序。使用第三方工具的其它应用的x code项目自动进行。当我尝试包括在这个其它应用基于我升压库,我得到的错误陈述。 。 。

I now want to use that library in another application. The other application's xcode project was automatically made using a 3rd party tool. When I try to include my boost-based library in this other application, I get errors stating . . .

没有命名空间命名为前进成员性病

和也行。 。

#include <tuple>

给出了preprocessor误差

gives the preprocessor error

未找到元组文件

看到,因为原始库建立在我的机器上就好了,错误必须下降到构建设置有差别,但我看不出差别,不知道的一个很好的方法来比较两种不同的构建设置项目。任何人都可以表明,可能会导致我的问题?构建设置

Seeing as the original library builds just fine on my machine, the errors must be down to a difference in the build settings, but I cannot see the difference and do not know of a good way to compare the build settings of 2 different projects. Can anyone suggest the build setting that might be causing me the problem??

编辑:

在这两个项目中,设置


  • 编译器C / C ++ / Objective-C的苹果= LLVM编译器3.0

  • Compiler for C/C++/Objective-C = Apple LLVM Compiler 3.0

C ++语言的方言=编译器的默认

C++ Language dialect = Compiler default

C ++标准库=编译器的默认

C++ Standard Library = Compiler default

编辑2 [解决]:


  • 我仍然有在目标设置中启用C ++ 11的方言。卫生部!

推荐答案

您的项目作为编译C ++ 11并通过一个C ++ 11标准库(的std ::朝前,头是新的)。
原项目似乎编译为C ++ 03与C ++ 03标准库,使这些新功能将不可用。

Your project compiles as C++11 and is using a C++11 standard library (std::forward and the header are new). The original project appears to compile as C++03 with a C++03 standard library, so those new features are not available.

这篇关于没有命名空间“STD”命名为“前进”成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆