In Ubuntu 14.04 LTS I installed Clang 3.7 after adding new official repository from http://llvm.org/apt/
Then based on this thread: http://askubuntu.com/questions/428198/getting-installing-gcc-g-4-9-on-ubuntu/456849#456849 I tried backport the latest packages
I add ppa repository: sudo add-apt-repository ppa:ubuntu-toolchain-r/test
Refreshed my repositories: sudo apt-get update
And finally installed (ideally) latest toolchain: sudo apt-get install g++-5
Everything works fine when compiling as follows: clang++-3.7 -std=c++14 main.cpp
What I left unresolved is using choose of default compiler. But more information can be found in thread: http://askubuntu.com/questions/26498/choose-gcc-and-g-version
In Ubuntu 14.04 LTS I installed Clang 3.7 after adding new official repository from http:// llvm.org/ apt/
Then based on this thread: http:// askubuntu. com/questions/ 428198/ getting- installing- gcc-g-4- 9-on-ubuntu/ 456849# 456849
I tried backport the latest packages
I add ppa repository: toolchain- r/test
sudo add-apt-repository ppa:ubuntu-
Refreshed my repositories:
sudo apt-get update
And finally installed (ideally) latest toolchain:
sudo apt-get install g++-5
Everything works fine when compiling as follows:
clang++-3.7 -std=c++14 main.cpp
What I left unresolved is using choose of default compiler. But more information can be found in thread: http:// askubuntu. com/questions/ 26498/choose- gcc-and- g-version