配置需求C++;14支架,但gcc-v=4.9.3

配置需求C++;14支架,但gcc-v=4.9.3,gcc,g++,c++14,configure,graph-tool,Gcc,G++,C++14,Configure,Graph Tool,我目前正在从Git版本编译graph tool 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+

我目前正在从Git版本编译graph tool 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-v
g++-v
并收到了响应
gcc版本4.9.3(Ubuntu 4.9.3-8ubuntu2~14.04)
。据我所知,这应该支持C++14,那么我错在哪里呢?我正在运行Ubuntu 14.04。

试试看

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

安装了一些

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

只需从其源代码编译gcc 5.3(2016年2月的最新版本gcc)即可安装更新版本。同意,安装gcc 5.x可能会起作用,但我想知道为什么当前版本在我看来是应该的时候却不起作用……因为GCC4.9是在2014年4月C++14标准定稿之前发布的。。。(因此,对尚未发布的标准的支持是实验性的)。您应该升级到GCC 5I已经使用
sudo apt get install GCC-5 g++-5
安装了它们,但是
GCC-v
仍然返回
GCC版本4.9.3(Ubuntu 4.9.3-8ubuntu2~14.04)
。我缺少什么?GCC4的标志可能是
c++1y
gnu++1y
。9@P-M:
configure
表示“在命令路径中找到的命令
configure
”——该命令不存在,导致您提到的错误消息
/configure
表示“当前目录中的命令
configure
”。。。