打开settings -->compiler 进入Compiler settings ,勾选 下图选中的蓝色一栏(-std=c++11) 进入Toolchain executables ,通过select file ,修改C++ compiler 为mingw32-gcc-n.n.n.exe 配置完成