Celeb Glow
updates | March 17, 2026

Cmake build from source gives problems on make (probably c++14 standard not used)

I just updated my Cmake to the version 3.19 (previously 3.10) from sources. For this I now have two cmake versions the one from before in /usr/bin/cmake and the new one in /usr/local/bin/cmake which does shadow the old one and therfeor seems to be fine.

The problem now I have is that when I compile a c++ program I get problems with missing std:: libraries when I do make. I assume this seems to be an issue that g++ is not using c++14 standard and therefore does not see these libraries.

I did not install a new g++ version and the one that I use is GNU 7.5 .0. The old cmake version does work as expected with this.

I installed cmake like this:

cd cmake-folder
./configure
make
sudo make install //installs to /usr/local/bin

Compiling my programm like this:

cd build-folder
cmake .. //uses new 3.19 version
make // gives error of missing std:: libs
cd build-folder
/usr/bin/cmake .. //uses old defualt 3.10 version
make //works

Do I somehow have to configure anything special or is my g++ version just not compatible with the cmake version? What else can be the cause?

2 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy