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

标签 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++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 - 配置需要 C++14 支持,但 gcc -v = 4.9.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35723718/

相关文章:

c - 如何在c中为非内核应用程序指定内核头文件的路径?

c - 从 fgets() 输入中删除尾随换行符

c++ - gcc -finline-functions 行为?

c++ - ISO-10646 XFont 编码问题

g++ - 如何摆脱g++中的 "inline function used but never defined"警告

c++ - 有没有办法部分匹配可变参数模板参数包?

C++ 错误 : expected identifier before ‘int’

c++ - G++ 4.4 "uninitialized"变量

opencv - 为什么我需要在 OpenCV 层次聚类中指定聚类数

c++ - clang 不使用可变参数推断可变参数模板函数中的模板参数