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