在旧版本centos上编译c++11的程序
run a c++ program with c++11 support in older CentOS machine
-
从extras安装Software Collections (SCL)
yum install centos-release-scl-rh
-
安装devtoolset:
yum install devtoolset-7-toolchain
-
使用devtoolset:
scl enable devtoolset-7 bash