I can't for the life of me figure out how to get C++17 to work on Ubuntu 16.04.
This works on Ubuntu 18.04:
sudo apt-get update sudo apt-get install clang-6.0
which installs the C++17 standard library headers in
/usr/include/c++/7. However, when I run the same commands in Ubuntu 16.04, I get C++14 headers in
/usr/include/c++/5, and C++17 features won't compile.
I tried following this as well to install clang-7, but that led to the following error:
clang: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'GLIBCXX_3.4.22' not found (required by clang)
Apologies if this is a dumb question; I am new to this stuff and am probably missing something obvious.