C++ 仅部分支持C++;11在Netbeans中

C++ 仅部分支持C++;11在Netbeans中,c++,netbeans,c++11,C++,Netbeans,C++11,我今天安装了NETBeaS 7.4,支持PHP、java和C++。 然而,我似乎只对C++11有部分支持(即使是带有-std=C++11或-std=C++0x的GCC4.8.1) 我已经查看了头文件(例如chrono),有一个名为_V2的内联名称空间,它遵循以下注释: // To support the (forward) evolution of the library's defined // clocks, wrap inside inline namespace so that the

我今天安装了NETBeaS 7.4,支持PHP、java和C++。 然而,我似乎只对C++11有部分支持(即使是带有
-std=C++11或-std=C++0x
的GCC4.8.1)

我已经查看了头文件(例如chrono),有一个名为_V2的内联名称空间,它遵循以下注释:

// To support the (forward) evolution of the library's defined
// clocks, wrap inside inline namespace so that the current
// defintions of system_clock, steady_clock, and
// high_resolution_clock types are uniquely mangled. This way, new
// code can use the latests clocks, while the library can contain
// compatibility definitions for previous versions.  At some
// point, when these clocks settle down, the inlined namespaces
// can be removed.  XXX GLIBCXX_ABI Deprecated
例如,如果我想使用高分辨率时钟,我需要

chrono::_V2::high_resolution_clock
而不是

chrono::high_resolution_clock
另外,to_string from string也声明为未定义

我错过什么了吗?我必须在Netbeans中更新我的头吗?如果是这样,我可以请你就如何进行向我提供建议吗


非常感谢

内联命名空间
s中的名称会自动提升到父命名空间,因此不需要指定
:V2
。您遇到了什么错误?是否安装了与gcc捆绑的Netbeans?您使用什么构建系统?我切换到Debian,现在使用的是KDevelop。它的工作就像一个魅力!