由于 C++11,构建新的 GDB 失败

由于 C++11,构建新的 GDB 失败

Centos Linux我用它运行 32 位gdb ver 7.2。我需要更新 GDB。我在构建 GDB 8.1 时遇到以下错误:

checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=gnu++11... no
checking whether g++ supports C++11 features with -std=gnu++0x... no
checking whether g++ supports C++11 features with -std=c++11... no
checking whether g++ supports C++11 features with -std=c++0x... no
checking whether g++ supports C++11 features with +std=c++11... no
checking whether g++ supports C++11 features with -h std=c++11... no
configure: error: *** A compiler with support for C++11 language features is required.
make[1]: *** [configure-gdb] Error 1

我的gcc版本是4.4.7.为什么不支持c++11

如何在 Centos 中更新 GDB?

相关内容