热度 8
2016-4-19 23:07
1009 次阅读|
2 个评论
1. Windows - Preferences - C/C++ - Build - Settings - Discovery CDT Cross GCC Build-in Compiler Settings CDT GCC Build-in Compiler Settings CDT GCC Build-in Compiler Settings Cygwin CDT GCC Build-in Compiler Settings MinGW 将它们的Command to get compiler specs修改为: ${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}" -std=c++0x 2. 新建工程(必须步骤)。 3. Project - Porperties - GCC C++ Compiler - Dialect Language standard: ISO C++11 (-std=c++0x) 编译并运行即可。