g++ exited with code 1, please see the Output Window - Build

第一次使用VS2015在windows上编译linux程序,按照网上的教程配置好后编译直接报错

g++ exited with code 1, please see the Output Window - Build 

估计大部分人遇到这种情况和我一样,是linux下的g++不支持 c++11所导致;

解决方法:

1、暂时关闭项目中使用c++11

项目右键属性-C/C++-语言,修改成下面这样重新编译即可。

g++ exited with code 1, please see the Output Window - Build

2、升级gcc/g++