注:编译源代码工程,会要求gcc的更高版本,而CentOS 7默认的软件源中没有提供这么新的版本,你可以通过以下方法来安装更新的GCC版本。
与GCC版本有关的常见问题:
问题1:
subprocess.CalledProcessError: Command ‘[‘which‘, ‘c++‘]‘ returned non-zero exit status 1。
问题2:
c++: 错误:unrecognized command line option ‘-std=c++17’。
查看GCC的版本
gcc --version
g++ --version
查看CentOS的版本
cat /etc/redhat-release


5万+

被折叠的 条评论
为什么被折叠?



