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
559 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
74 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
206 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 ...
4
votes
0answers
803 views

clang++ (version 3.3) lacks headers

This seems odd. Take a simple C++ program #include <cmath> #include <iostream> int main(void) { std::cout << "Square root of 9 is " << sqrt(9) << std::endl; } ...
2
votes
0answers
65 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
128 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
99 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
105 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 ...
0
votes
0answers
194 views

Switching from GCC to Clang to compile with OpenCV

I have been compiling code that uses OpenCV by using a CMake project with the following flags in GCC: -Wall -Werror -std=c++14 And it compiled every time. No problems anywhere. When I switch to ...
0
votes
0answers
35 views

Building and hosting Ubuntu packages using C++11

The full question would be: Is Ubuntu ready to host C++ applications packages, compiled with C++11, and which use a large set of dependencies? Let's say that we have an official Ubuntu package (C++ ...
0
votes
0answers
64 views

How to upload my C program to the Ubuntu Software Center

I recently created a game using the C-programming language. Now I want to upload it to the Ubuntu software center but I don't know how. I'm searching on Google since at least 2 weeks, but without ...