Questions tagged [compiler]

Questions related to compilers or tools offering compilation.

Programming, Tool: A program that converts another program from some source language (or programming language) to machine language (object code). Some compilers output assembly language which is then converted to machine language by a separate assembler.

A compiler is distinguished from an assembler by the fact that each input statement does not, in general, correspond to a single machine instruction or fixed sequence of instructions. A compiler may support such features as automatic allocation of variables, arbitrary arithmetic expressions, control structures such as FOR and WHILE loops, variable scope, input/ouput operations, higher-order functions and portability of source code.

147 questions
27
votes
2 answers

How do I use graphics.h in Ubuntu?

Is there any Linux based compiler which supports graphics.h library? I want to implement graphic programs, so please kindly let me know if there is any such software. If not then how can I use it?
Atul Singh
  • 295
  • 1
  • 3
  • 4
27
votes
1 answer

How to install g++ compiler?

I have tried the following: sudo apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version. 0 upgraded, 0 newly installed, 0 to…
Siddharth Bhardwaj
  • 379
  • 1
  • 3
  • 3
19
votes
2 answers

How to set Clang 9 as the default C++ compiler on Ubuntu 19.10?

how do I set Clang 9 as the default C++ compiler on Ubuntu 19.10? I searched the internet, but nothing helped. Thank you for answer :)
user1027802
17
votes
1 answer

What are the GCC and clang versions available in Ubuntu 18.04?

In the new Ubuntu 18.04: What's the default GCC version (with which the binaries were built)? What GCC versions are available as separate packages (and what minor version is installed if I install GCC 4, 5, 6, 7 or 8 respectively)? What Clang…
einpoklum
  • 881
  • 3
  • 10
  • 32
14
votes
2 answers

Where are header files for GCC located?

I want to manually add some header files like math.h and graphic.h for gcc but don't know where to put them.
Chirag Soni
  • 151
  • 1
  • 1
  • 7
13
votes
2 answers

How to compiler OpenMP program using clang?

My gcc compiles well, but clang fails with the following message: clang -fopenmp=libomp -o main main.c main.c:5:10: fatal error: 'omp.h' file not found I also installed libomp5 package and changed flag to -fopenmp=libomp5 , though it didn't help…
anon
13
votes
2 answers

LLVM/Clang 3.1 & libc++

Has anybody built and setup an Ubuntu Precise PPA for LLVM/Clang 3.1? A bonus would be to have a recent version of libc++ integrated into it aswell.
Nordlöw
  • 733
12
votes
6 answers

Can't execute .out files, getting permission denied

I have written a C++ program and complied it to produce a.out file. However, whenever I try to run it, I get Permission Denied. I read that we can use sudo, but I can't quite get it to work. I use something like, sudo "./a.out" but that too doesn't…
10
votes
2 answers

Update GCC to the 6.3 version

I want to use some C++ features only available in more recent versions of the language. The problem is Ubuntu 15.04 (Vivid Vervet) has 4.9.2 installed and looking at the output I get from apt-get install gcc: Reading package lists... Done Building…
10
votes
3 answers

How do i install less css compiler?

I just installed less css compiler using npm. Now thelesscfile directory is /usr/local/bin/lessc . i'm not clear what i need to change in lessc file and how to understand that compiler has been correctly installed.
9
votes
2 answers

Installing an older gcc version(3.4.3) on Ubuntu 14.04 (currently 4.8 installed)

I have gcc 4.8 installed but I also need to install gcc 3.4.3. I have followed these steps: Downloaded gcc 3.4.3 from gcc.parentingamerica.com/releases. Extracted the tar. ./configure make Then it throws this error:…
8
votes
2 answers

PHP compiler/interpreter

How to install PHP Compiler/Interpreter on ubuntu 11.04 I have latest version of PHP, but I want to learn PHP from terminal. Is there a PHP interpreter available that will run PHP programs inside terminal. e.g. I want to run command like "phpc" or…
7
votes
2 answers

Ubuntu 13.04 with gcc/g++/gfortran 4.8 by default?

I plan to download and install Ubuntu 13.04 and I would like to have two compilers on my system. First question: what is the version of gcc/g++/gfortran shipped with ubuntu 13.04 ? (is it 4.7.3 ?). So, I would like to have gcc/g++/gfortran 4.8 as…
Vincent
  • 243
  • 1
  • 3
  • 12
6
votes
1 answer

How to Install a C/C++ compiler in Ubuntu 14.04LTS?

Is there a need to install a C/C++ compiler in Ubuntu 14.04 LTS? Where to write the program? How to compile the same?
Pavan Aithal
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

How to install Open64 Compiler?

Open64 is the compiler maintained by AMD, here are the links: http://developer.amd.com/tools/cpu-development/x86-open64-compiler-suite/ and the Community Maintained one http://www.open64.net/home.html I would love to know how to install it. The…
1
2 3
9 10