[英]Why I can't run C++11?
I included chrono header and it wouldn't find it. 我包括了chrono标头,但找不到它。 I used the namespace chrono and it didn't compile it. 我使用了名称空间chrono,但没有对其进行编译。
The question is, is this a problem of Eclipse or the compiler does not support C++11? 问题是,这是Eclipse的问题还是编译器不支持C ++ 11? I have added in Eclipse the corresponding flag and macro. 我在Eclipse中添加了相应的标志和宏。
Under this directory 在这个目录下
/usr/include/c++/4.3.2 /usr/include/c++/4.3.2
I can not find chrono, only this file "c++0x_warning.h" regarding c++11. 我找不到chrono,只有关于c ++ 11的文件“ c ++ 0x_warning.h”。
The problem is that I am using a computer that I am not admin of and requesting a compiler's update would have me do a long procedure. 问题是我使用的不是我所管理的计算机,并且请求编译器更新将使我执行一个漫长的过程。
Use a compiler with chrono support :-) 使用支持chrono的编译器:-)
See: http://gcc.gnu.org/gcc-4.4/changes.html 请参阅: http : //gcc.gnu.org/gcc-4.4/changes.html
gcc supports chrono from version 4.4. gcc从版本4.4开始支持chrono。 You compiler is simply much too old. 您的编译器太旧了。 Take the actual 4.9.0. 以实际的4.9.0。 So you have also regex as present :-) 所以你也有正则表达式:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.