configure needs C++14 support but gcc -v = 4.9.3

P-M picture P-M · Mar 1, 2016 · Viewed 10.1k times · Source

I am currently in the process of compiling graph-tool v1.13 from the Git version. I have managed to generate the configure file from autogen.sh but am now running into trouble.

Running ./configure I receive the message:

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.

I have checked gcc -v and g++ -v and receive the response gcc version 4.9.3 (Ubuntu 4.9.3-8ubuntu2~14.04). To my knowledge this should support C++14 so where am I going wrong? I am running Ubuntu 14.04.

Answer

Basile Starynkevitch picture Basile Starynkevitch · Mar 1, 2016

Try perhaps

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

after having installed some GCC 5