今日、PHP、Java、および C++ をサポートする Netbeans 7.4 をインストールしました。ただし、C++ 11 は部分的にしかサポートしていないようです (GCC 4.8.1 を使用しても-std=c++11 or -std=C++0x
)。
ヘッダー ファイル (例: 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
したがって、たとえば、high_resolution_clock を使用する場合は、
chrono::_V2::high_resolution_clock
それ以外の
chrono::high_resolution_clock
また、string からの to_string も undefined として宣言されています。
私は何かが欠けていますか?Netbeans でヘッダーを更新する必要がありますか? もしよろしければ、今後の進め方を教えていただけないでしょうか?
どうもありがとう!