1. Windows -> Preferences -> C/C++ -> Build -> Settings -> Discovery
CDT Cross GCC Build-in Compiler Settings [Shared]
CDT GCC Build-in Compiler Settings [Shared]
CDT GCC Build-in Compiler Settings Cygwin [Shared]
CDT GCC Build-in Compiler Settings MinGW [Shared]
将它们的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)
编译并运行即可。
DiracFatCat 2016-4-25 10:11
用户1700324 2016-4-21 08:24
用户440599 2013-6-19 15:11