Clang is a C/C++ language compiler frontend for LLVM.

learn more… | top users | synonyms

2
votes
1answer
1k views

clang++ fails to compile simple hello world c++ program

After upgrade to 14.04 from 12.04 clang++ stopped working. $ cat test.cpp #include <iostream> int main() { std::cout << "Hello World" << std::endl; return 0; } $ ...
0
votes
1answer
70 views

can't compile .cpp file with clang even after installing clang3.8

I installed clang3.8 with bunch of other packages that I usually need, after a fresh installation of Ubuntu 15.10 using following command: $ sudo apt-get install clang-3.8 clang-3.8-doc libclang-...
0
votes
1answer
41 views

Build with clang for older ubuntu releases

So the problem started as I lately updated my Ubuntu Vivid (15.04). Now clang-3.5 depends on libstdc++-4.9 (instead of previous version of 4.8) and my compiled programs fail to run on Trusty (14.04): ...
0
votes
1answer
112 views

Is it possible to install LLVM and Clang on a USB drive?

I recently installed Python3 in a local folder, as opposed to the entire system, on a shared hosting account and everything worked out perfectly. I was wondering if a similar thing could be done with ...
-1
votes
1answer
339 views

have clang 3.4., need clang 2.9

i installed the default version of clang and llvm in my ubuntu 14.04 and it's version 3.4. That's nice, but for some legacy stuff i need version 2.9. Ideally, i could install both version in parallel ...
2
votes
0answers
85 views

How to edit a backported package before uploading it to a PPA?

I'm attempting to backport Clang 3.2 to Quantal from Raring. Thinking this would be a relatively painless process, I ran the following command: backportpackage -s raring -d quantal -u ppa:george-...
1
vote
0answers
62 views

Why after adding alternative to clang I get undefined references?

I have clang3.6 installed and it works fine but as soon as I try to add alternative to it by sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang++-3.6 10 and use it while ...
1
vote
0answers
267 views

How do change the name of the clang++ executable file?

I'm using Vmware to run Ubuntu 14.04, and I recently updated the vmware player to version 7.1. I previously had clang installed, and everything was running fine. After I updated vmware, when I tried ...
0
votes
0answers
32 views

How to install LLVM 3.9

I'm working with Emscripten and one of the error messages is: LLVM version appears incorrect (seeing "3.3", expected "3.9") But I can't find 3.9 on the LLVM page: http://llvm.org/releases/download....
0
votes
0answers
101 views

How can I find the directory to clang-format

I use gvim to code and want to use clang-format as a plugin. As I read it is already integrated in vim. I just need to add this line to my .vimrc: map <C-K> :pyf <path-to-this-file>/clang-...
0
votes
0answers
117 views

Unmet dependencies while installing clang++

I'm trying to install clang++ by running the command sudo apt-get install clang++, however I get the following error message (full paste) The following packages have unmet dependencies. ...
0
votes
0answers
342 views

Installing Atom on Ubuntu encounters errors with gvfs-bin

So I am trying to install Atom on my Chromebook running Xubuntu 14.04 (64 bit). I downloaded the .deb from atom.io, but when I ran sudo dpkg -i atom-amd64.deb, it returned: Selecting previously ...
0
votes
0answers
70 views

Cannot find boost/type_index.hpp after installing boost-all-dev

I have just installed a fresh copy of ubuntu vivid (15.04), then did the following (filtered history command dump): 18 [2016-01-14 23:32:41] sudo apt-get install clang-3.7 clang-3.7-doc libclang-...
0
votes
0answers
83 views

ubuntu 15.10, jsoncpp, and clang++

On upgrading from 15.04 to 15.10, I stopped being able to compile against libjsoncpp using clang++. (Using g++ works fine.) As far as I can tell, it would suffice to recompile libjsoncpp with clang++...
0
votes
0answers
54 views

How to make a standalone Clang download use its own /include?

Trusty has a significantly outdated package base. For most part, it doesn't bother me, but with some packages, I'd like to have a choice to use newer ones. C/C++ compiler is one of those. In order to ...