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

learn more… | top users | synonyms

3
votes
1answer
1k views

How to install CLang using precompiled binaries?

How do I install CLang on Ubuntu, using precompiled binaries of CLang that I downloaded? Here's how I downloaded CLang: "LLVM Download Page" -> "Download LLVM 3.2" -> "Clang Binaries for ...
2
votes
1answer
901 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
98 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
291 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
174 views

Clang++ cannot find lstdc++ after system upgrade

I have a small project in C++ that compiled fine until I upgraded Xubuntu to 15.04. When I tried to rebuild it with cmake, this message appeared in the middle of the output: /usr/bin/ld: cannot find ...
2
votes
0answers
78 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 ...
1
vote
0answers
222 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
18 views

Undefined references compiling clang tutorial on 14.04.2

I tried to compile the code from clang's libtooling tutorial (section "Put it together"). Compiling works: g++ `llvm-config-3.5 --cxxflags` -fno-rtti -c test.cpp -o test.o I got undefined ...
0
votes
0answers
20 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 ...
0
votes
0answers
19 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
71 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
21 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 ...
0
votes
0answers
32 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 ...
0
votes
0answers
29 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 ...
0
votes
0answers
24 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
0answers
219 views

How to compile source package with clang with -stdlib=libc++?

I have both g++ 4.9, clang++ and the clang++ with the standard C++11 library for clang, libc++1, installed on Ubuntu 14.04. I have set the c++ alternative to be clang++-libc++: sudo ...
0
votes
0answers
248 views

cross-compiling with clang using mingw

I was trying to compile under linux for windows. I have installed binutils multilib for linux and w64-mingw. If I compile with x86_64-w64-mingw-gcc everything work, but if I use clang with -target ...