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

learn more… | top users | synonyms

0
votes
1answer
25 views

How I know what version of clang I have installed?

How I know what version of clang I have installed ?
0
votes
0answers
26 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
45 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 ...
2
votes
0answers
167 views

Upgrade to gcc-4.9 broke clang++

Recently I have upgraded to gcc-4.9 but it totally broke my clang++ and I am unable to compile anything. Error I am getting: In file included from src/tester.cpp:11: In file included from ...
1
vote
0answers
252 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; } $ ...
3
votes
1answer
2k views

How to install clang++?

I'm having trouble getting clang++ to work as I compile my code. Specifically, I'm getting a make: clang++: Command not found error. I've run sudo apt-get install llvm, and also sudo apt-get install ...
-1
votes
1answer
85 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 ...
0
votes
0answers
259 views

How can I use C++11's <regex> on Ubuntu?

I normally use the G++ compiler, but I don't have anything against using clang++. Reading about this, I get the idea that G++'s implementation of C++11's regex might not compile, and if it does, it ...
1
vote
3answers
327 views

Unmet dependencies libc++ [duplicate]

How should I correctly install clang's c++ library (with STL) on my lubuntu machine? I want to use clang and its c++ library because it offers better support for the upcoming c++14 standard. When ...
0
votes
0answers
10 views

Do I need to take checkout of clang seperately while installing llvm If I already have clang

I am tring to install llvm. Do I need to take checkout of clang seperately while installing llvm If I already have clang . Thanks in advance.
0
votes
0answers
405 views

32 bit crtbegin.o on 64-bit Ubuntu 12.10

I'm trying to compile a 32-bit binary on 64-bit Ubuntu using clang 3.4 and the -m32 option. However, I'm getting the following linker error: /usr/bin/ld: cannot find crtbegin.o: No such file or ...
0
votes
1answer
102 views

How to install two different compilers?

I am an unskilled Ubuntu user and almost each time I try to install something nontrivial I break something miserably. I am successfully using gcc 4.7 and 4.8 simultaneously using update-alternatives ...
3
votes
1answer
778 views

Installing Clang+LLVM 3.4 from llvm.org into Saucy 13.10

I'm trying to setup Saucy to install clang and llvm 3.4 from the official LLVM apt repo, but it doesn't work. I only get the 3.4 snapshots from Ubuntu's own repos. I followed the instructions from ...
1
vote
1answer
2k views

Clang Error “stddef.h file not found”?

After upgrading to Saucy, Clang now gives me the error message: clang -Wall -Werror -std=c99 -ggdb -O0 5.1.c -o 5.1 In file included from 5.1.c:1: /usr/include/stdio.h:33:11: fatal error: 'stddef.h' ...
4
votes
0answers
644 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; } ...
0
votes
1answer
208 views

./configure Permission Denied when try to build llvm

I'm try to build to build Clang and LLVM and after download it I want to configure it so when I do that command : ../llvm/configure --prefix=/usr/clang_3_3 --enable-optimized --enable-targets=host ...
0
votes
1answer
50 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 ...
0
votes
1answer
3k views

Install clang 3.3 on Ubuntu 12.04 and see unmet dependencies errors

ubuntu@ubuntu-VirtualBox:~/Downloads$ sudo apt-get install clang-3.3 clang-3.3-doc libclang-common-dev libclang-dev libclang1 libclang1-dbg libllvm-3.3-ocaml-dev libllvm3.3 libllvm3.3-dbg lldb-3.3 ...
8
votes
1answer
11k views

llvm and clang installation on ubuntu

So I'm trying to install Halide on my Ubuntu 12.04 (64bit). I need llvm-3.2 and clang to be installed. Running sudo apt-get install llvm-3.2 ends up with 'package not found'. Trying sudo apt-get ...
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 ...
1
vote
1answer
151 views

Why doesn't LD_LIBRARY_PATH has any effect?

./a.out: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory even though: $ echo $LD_LIBRARY_PATH ...
2
votes
0answers
58 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 ...
14
votes
1answer
4k views

How do I backport/install a newer version of clang?

I just want to install the newest version of clang http://packages.ubuntu.com/raring/clang-3.2 Does this mean I have to update my kernel to raring?