简体   繁体   中英

Why I can't run C++11?

I included chrono header and it wouldn't find it. I used the namespace chrono and it didn't compile it.

The question is, is this a problem of Eclipse or the compiler does not support C++11? I have added in Eclipse the corresponding flag and macro.

Under this directory

/usr/include/c++/4.3.2

I can not find chrono, only this file "c++0x_warning.h" regarding c++11.

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.

This might be helpful.

Use a compiler with chrono support :-)

See: http://gcc.gnu.org/gcc-4.4/changes.html

gcc supports chrono from version 4.4. You compiler is simply much too old. Take the actual 4.9.0. So you have also regex as present :-)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM