Ubuntu解决eclipse CDT 不能识别C++11新特性问题

前端之家收集整理的这篇文章主要介绍了Ubuntu解决eclipse CDT 不能识别C++11新特性问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Step 1:

Project->Properties->C/C++ Build->Settings->GCC G++ Compiler->Miscellaneous->Other flags 将-c -fmessage-length=0 改为 -c -fmessage-length=0 -std=c++11

Step 2:

C/C++ General -> Paths and Symbols -> Symbols -> GNU C++. 点击 "Add..." and 在Name 中添加__GXX_EXPERIMENTAL_CXX0X__ ,"Value" 不设值,点击apply

Step 3:

C/C++ General -> Paths and Symbols -> Symbols -> GNU C++. 点击 "Add..." ,Name 写 __cplusplus, value 写 201103L,点击 apply

猜你在找的Ubuntu相关文章