环境:
Ubuntu 14.04
g++ 4.8.4
Eclipse IDE for C/C++ Developers (Version: Mars.2 Release (4.5.2))
设置:
Project > Properties > C/C++ Build > Settings > Tool Settings > GCC C++ Compiler > Miscellanenous
在 Other flags 后面加入 -std=c++0x
参考网站:
http://wiki.eclipse.org/CDT/User/FAQ#CDT_does_not_recognize_C.2B.2B11_features