配置需要 C++14 支持,但 gcc -v = 4.9.3

configure needs C++14 support but gcc -v = 4.9.3

我目前正在从 Git 版本编译图形工具 v1.13。我已经设法从 autogen.sh 生成了 configure 文件,但现在 运行 遇到了麻烦。

运行 ./configure 我收到消息:

checking whether g++ supports C++14 features by default... no
checking whether g++ supports C++14 features with -std=gnu++14... no
checking whether g++ supports C++14 features with -std=gnu++0x... no
configure: error: *** A compiler with support for C++14 language features is required.

我检查了 gcc -vg++ -v 并收到了回复 gcc version 4.9.3 (Ubuntu 4.9.3-8ubuntu2~14.04)。据我所知,这应该支持 C++14 那么我哪里出错了?我是 运行 Ubuntu 14.04.

也许试试

./configure CXX='g++-5'

安装一些 GCC 5

之后

gcc 4.9.3 支持 C++14,但正确的编译器标志是 '-std=c++14'