1、设置环境变量

Project->Properties->C++ General->Pahts and Symbols->Symbols(选项卡)eclipse+cygwin设置c++11编译环境

eclipse+cygwin设置c++11编译环境



2、

Project->Properties->C/C++ Build > Settings > GCC C++ Compiler > Miscellaneous > other flages ,在原来的基础上添加上 -std=c++11 

对于GCC C compiler, 相似的添加-std=gnu++11 


相关文章: