Ubuntu:This file requires compiler and library support for the ISO C++ 2011 standard. 解决方法

ubuntu中直接编译 将g++ 直接换成下面的编译语句
g++ -std=c++11 hello1.cpp -o hello1
在这里插入图片描述
成功!

猜你喜欢

转载自blog.csdn.net/shanlijia/article/details/107134882