我目前正在从Git版本编译graph-tool v1.13的过程。我已经设法从autogen.sh
生成configure
文件,但我现在遇到了麻烦。配置需要C++ 14支持,但gcc -v = 4.9.3
运行./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 version 4.9.3 (Ubuntu 4.9.3-8ubuntu2~14.04)
。据我所知,这应该支持C++ 14,所以我哪里错了?我正在运行Ubuntu 14.04。
只需安装更新版本的[GCC](http://gcc.gnu.org/),也许可以通过源代码编译GCC 5.3(febr.2016中最新版本的GCC)。 –
安装GCC 5.x可能会工作,但同意,但我想知道为什么当前版本不工作,当它看起来像我应该... –
因为GCC 4.9是在2014年4月发布的C++ 14标准完成之前...(所以对尚未发布的标准的支持是实验性的)。你应该升级到GCC 5 –