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

时间:2016-03-01 13:03:18

标签: gcc g++ c++14 configure graph-tool

我目前正在从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.

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

2 个答案:

答案 0 :(得分:5)

尝试

var params = {
    parameter1: 'value1',
    parameter2: 'value2',
    parameter3: 'value3' 
};

var queryString = Object.keys(params)
    .map(k => k + '=' + encodeURIComponent(params[k]))
    .join('&');

安装了一些GCC 5

之后

答案 1 :(得分:2)

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