Questions tagged [clang]

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

Clang is a compiler front end for the C, C++, Objective-C and Objective-C++ programming languages. It uses LLVM as its back end and has been part of its releases since LLVM 2.6.

The goal of the project is to offer a replacement to the GNU Compiler Collection (GCC).

118 questions
17
votes
1 answer

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 install llvm or sudo apt-get install clang installs…
Andrei Ivanov
  • 311
  • 1
  • 3
  • 4
1
vote
0 answers

Multiple versions of clang with openmp

On Ubuntu 22.04 (and previous versions as well) it is possible to have multiple clang versions installed at once. However, OpenMP needs to be installed separately for each clang version (for example sudo apt install libomp-12-dev for clang-12).…
S. Kaczor
  • 111
0
votes
1 answer

How do you compile c files with clang into a binary format?

I created source code as a .c file and tried running clang exampledebugging.c into it. It came up empty. Can anyone please help me? I am trying to compile this program into a binary executable format.
0
votes
0 answers

Install Clang 11 Error

I’m trying to install clang-11 using command Step 1 apt install clang-11 fails with error The following packages have unmet dependencies: clang-11 : Depends: libclang-cpp11 (>= 1:11.1.0~++20210428103820+1fdec59bffc1) but…
Genie
  • 1