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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1242300

Title:
  Clang cannot locate standard header files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1242300/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to