Closed sebma closed 5 years ago
The compiler you're using is too old. Run c++ --version
and which c++
to see what you've got.
If you're on an LTS version, building with clang might be a simpler option than upgrading g++. Just add -DCMAKE_CXX_COMPILER=clang++
to the cmake invocation, provided you have clang installed.
By the way, it's better practice to run make
first without sudo, and then sudo make install
.
$ c++ --version
c++ (Ubuntu 4.8.5-4ubuntu8~14.04.2) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Yes I'm using an LTS, that's why the compiler is old.
I also have gcc-7 already installed from the ppa:ubuntu-toolchain-r/test launchpad repository , I've tried -DCMAKE_CXX_COMPILER=g++-7
and it worked !
Thanks a lot.
God bless you abundantly !
Hi,
I have a pb. with
sudo make install
:Can you help me ?