本文记录了博主用shell编译make.sh文件时遇到的报错:“g++ error:This file requires compiler and library support for the ISO C++ 2011 standard”的解决方案。更新于2019.03.18。
这个问题要求用-std=c++11或-std=gnu++11来编译,因此,将原来文件中的
CC=g++ python build.py
修改成
CC="g++ -std=c++11 python build.py"
即可。
需要注意的是,如果只是在原来的基础上增加了-std=c++11会报错,找不到comment。原因是g++是空格敏感的,因此需要将其后面的命令用双引号括在一起。

本文记录了博主用shell编译文件时遇到报错‘g++ error:This file requires compiler and library support for the ISO C++ 2011 standard’的解决办法,需将文件中的相关内容修改,同时要注意g++空格敏感,后面命令需用双引号括起。
92





