相关文章推荐
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I'm new to Ubuntu. I downloaded a python module graph-tool-2.22 . After I command in graph-tool-2.22 directory

./configure

, it causes configure error.

$ ./configure
....blah
....blah
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++1y... no
configure: error: *** A compiler with support for C++14 language features is required.

It says that c++14 is required, however, of course I have g++ (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 in my computer. What is the problem?

Double check your g++ in the console: g++ -v. Your version should work with param -std=gnu++1y according to this. – sascha Aug 4, 2017 at 16:01

Your version of gcc does not seem to have support for C++14 that graph-tool-2.22 need.

As mentioned in the gcc site in section C++14 Language Features, full support for C++14 is in gcc 5, with reasonable amount of features also available gcc 4.9.

You might like to upgrade to gcc 5 , perhaps by upgrading to Ubuntu 16.04. Ubuntu 14.04 is old

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

 
推荐文章