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

P-M*_*P-M 3 gcc g++ configure graph-tool c++14

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

运行./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.
Run Code Online (Sandbox Code Playgroud)

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

Bas*_*tch 5

或许试试吧

./configure CXX='g++-5'
Run Code Online (Sandbox Code Playgroud)

在安装了一些GCC 5之后

  • @PM:`configure`意味着"在命令路径中找到的`configure`命令" - 它不存在,导致你提到的错误信息.`./configure`表示"当前目录*中的命令`configure`*"... (2认同)