Comment 17 for bug 1242300

Revision history for this message
Tomas Angelo (tommyangelo) wrote :

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