让eclipse支持C++11特性

来源:互联网 发布:西蒙网络面板接线图 编辑:程序博客网 时间:2024/06/08 02:15

Right-Click on Project->Properties->C/C++ General->Preprocessor Include Paths, Macros, etc. –> Click “Providers” tab –> CDT GCC Built-in Compiler Settings

Uncheck “Use global provider shared between projects”

Add -std=c++0x

It will then look something like this:

${COMMAND} ${FLAGS} -E -P -v -dD -std=c++0x "${INPUTS}"

Rebuild index.

原创粉丝点击