The GNU Compiler Collection is the standard compiler system used on many Unix-like operating systems, including Linux. Originally meant for compiling C programs, it can now also handle C++, Java and several other languages.

learn more… | top users | synonyms

-7
votes
0answers
23 views

c program error in Ubuntu 12.04 using gcc [on hold]

I ran C program using gcc compiler in Ubuntu 12.04 but whenever i run my program it shows virtual memory exhausted error to me through Ubuntu terminal. it is not a error i wrote error command in ...
1
vote
3answers
32 views

Problem installing gcc compiler

I tried to install gcc compiler because I want to learn programming I have an old computer 1gb ram so I installed an older version of Ubuntu (10.04) and its working faster than before but when I try ...
4
votes
3answers
936 views

How do I compile/run C++ code in the console?

I'm trying to run my C++ code using the console. I used the header file conio.h like I did when I used Turbo C++ IDE in Windows, and I ran the code in console using g++ filename.cpp I have ...
1
vote
1answer
74 views

GCC related issue(Need to install latest version of GCC 4.9.0)

I am using Ubuntu 14.04 LTS. I want to install latest version of GCC 4.9.0. Is it possible to uninstall default GCC compiler prepacked with OS? In this link, I read that uninstalling the default ...
3
votes
3answers
2k views

How do I use the latest gcc 4.9 on Ubuntu 14.04

I want to compile my program with the latest version of gcc. Ubuntu 14.04 comes with gcc 4.8.2, however there's 4.9.0 available, moreover, I see that it is available as a package: gcc-4.9. I tried to ...
0
votes
0answers
12 views

when building u-boot /bin/bash: arm-none-linux-gnueabi-gcc: command not found

I am currently running Ubuntu 12.0.4 on a 64 bit machine. I have an AM335X development board. Along with the kit came the compressed kernel (linux 3,2), rootfs, u-boot, and ARM cross compiler ...
0
votes
1answer
10 views

No package 'ncurses' found [duplicate]

I'm trying to install XWiimote and they tell me to run ./autogen.sh in the installation notes . This is the output: zorin@Samsung-NP300E4Z-S03TH:~/Downloads/xwiimote-master$ ./autogen.shlibtoolize: ...
0
votes
1answer
37 views

Problem installing g++ ccompiler on Ubuntu 14.04

I tried to install g++ using packages from another user. offline..but there were errors. After connecting to the net I tried to install using sudo apt-get install g++, but it gave the following ...
-1
votes
0answers
7 views

GCC compiled c-code on an sd-card not executing

So i wrote a program and compiled it with gcc program.c -o program when i try to run it with ./program i get the following bash: ./program: permission denied With 'sudo ./program' it tells me ...
0
votes
2answers
38 views

what is exactly object file and how to open it

g++ myCppFile -o myOut I do not know about compiling procedure. But all I want to know is what is the type of myOut? It is not text. It is not like configuration file. So what is it ? And how to ...
0
votes
1answer
42 views

C/C++ Compiler for Ubuntu like Dev-C++

Need a good c/c++ compiler for Ubuntu. I like coding or programming. I used Dev-C++ on Windows. Is there any good compilers like Dev-C++? I tried code::blocks ide but it seems a little buggy for me. ...
8
votes
3answers
3k views

Downloaded g++ 4.8 from the PPA but can't set it as default?

I have downloaded g++ 4.8 on Ubuntu 12.10 by doing: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install g++-4.8 but when I do: sudo update-alternatives ...
16
votes
4answers
34k views

How to update gcc to the latest version(in this case 4.7) in Ubuntu 10.04?

I have Ubuntu 10.04 32-bit with gcc 4.4.3 currently installed on it. I want to upgrade it to gcc/g++ 4.7 (I am looking for C++ 0x support) How to update using Ubuntu Package Manager: apt-get ...
0
votes
1answer
1k views

How to install boost 1.53 or 1.54 from terminal?

I'd like to install boost 1.53 or 1.54 from terminal in Ubuntu 12.04. How do I do this? I used the libboost command and it gave me 1.48, whereas I need a more recent version. Thanks in advance
11
votes
4answers
11k views

Getting + installing gcc/g++ 4.9 on Ubuntu?

How do I install the latest version of gcc and g++? I am using a variety of C++11 and C++1y features; which is why I need this.
1
vote
0answers
44 views

How to install old version of gcc on Ubuntu 14.04

I need to install gcc 3.0 on Ubuntu 14.04. I tried to compile sources but it throws error. Is possible to install gcc 3.0 from repository? How to do that? This does not work for me. apt-get update ...
0
votes
1answer
39 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 ...
0
votes
1answer
31 views

using system(“clear”); command to clean the screen yet last line printed. using GNU gcc compiler please help

I am using 'system("clear");' command to clean the output screen yet the last line printed is displayed.I am using Geany text editor using GNU gcc compiler.Please help and tell me clear the whole ...
0
votes
2answers
62 views

I am not able to compile a simple program using gcc

Wrongly I have install ia32-libs but my host system is 64 bit. Now whenever i try to compile c file i get a message as: unrecognized option '--64' I have uninstall th ia32-libs but I am getting ...
-1
votes
0answers
35 views

llcm-gcc include path error

for a specific build i need to use the llvm-gcc for linux x64 from here: http://llvm.org/releases/download.html#2.9 The problem is, its include path is messed up. I added the /bin directory to my ...
1
vote
0answers
43 views

Why can I compile against libclang-3.5.so and not against libclang.so?

I am trying to compile a C source file, that needs to be linked against a dynamic library I installed through apt-get (libclang.so). apt-get installed the clang shared libraries in ...
0
votes
0answers
16 views

How to install and use (link) librsync library

I installed the librsync library using: sudo apt-get install librsync-dev librsync-dbg. But then how do I link this library statically? I Tried: gcc -o my_prog my_prog.c pkg-config --libs ...
-1
votes
1answer
56 views

How to install gmp 4.3.2 on ubuntu 14.04

I want to install gcc-4.4.3,for which I have to install gmp 4.3.2. When I run: ./configure make I get this error. Can you help me? make all-recursive make[1]: Entering directory ...
0
votes
1answer
4k views

Linker error: /usr/bin/ld: cannot find -lgcc_s

I am trying to compile symlinks (tar.gz-file), which is a very small tool with one line for compilation: gcc -Wall -Wstrict-prototypes -O2 -N -s -o symlinks symlinks.c which gives the error ...
0
votes
1answer
61 views

Should `arm-none-eabi-gcc` include a `stdio.h`?

I'm trying to build a simple example from the SDK for the TI CC3200 (Cortex M4), but when I try to compile it complains about stdio.h. make CC ../main.c ../main.c:45:19: fatal error: stdio.h: No ...
1
vote
0answers
12 views

Change gcc output directory [closed]

How can the output of gcc be directed from default directory to an output directory? I created a source directory containing the source programs and an output directory to store the compiled ...
3
votes
3answers
518 views

What version of GCC is used by the make command? [closed]

Is there any way to know what version of gcc is used by the make command? I have 5 versions installed of gcc on my computer: by dpkg -l | grep gcc ii gcc ...
4
votes
1answer
1k views

collect2: error: ld returned 1 exit status

I want to install nexalign (can be downloaded from here) on ubuntu 13.10. I previously installed it on ubuntu 10 without any problem. The error I got is: gcc -O9 -Wall -Dthread -lpthread main.o ...
0
votes
3answers
1k views

Error while installing tiff-4.0.3

I get the following errors while installing tiff-4.0.3: pranav@pranav-Inspiron-1545:~$ cd dependency/ pranav@pranav-Inspiron-1545:~/dependency$ tar -xvf libtiff4-3.6.0-5.tar.bz2 usr/bin/cygtiff4.dll ...
6
votes
3answers
8k views

How to activate gcc 4.7 version?

I have gcc 4.6.3 installed: gcc --version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 I have installed newer version: apt-get install gcc-4.7 But i still get result "gcc 4.6.3" when I type gcc ...
1
vote
1answer
93 views

C compiler cannot create executables

Everything was right. I have installed gdb from github and installed in /usr/local/bin. After that i removed default gdb(/usr/bin) using the following command sudo apt-get remove gdb Now, when try ...
0
votes
2answers
33 views

how to know which version of the compiler used to install a program from source among all versions of the that compiler

I installed a program via source code . To do that I downloaded a gcc and g++ appropriate for that. I use this command in order to install that $ export CC=gcc-?? CXX=g++-?? && ./install ...
1
vote
0answers
29 views

unable to compile program using -m32 and gcc

I have installed multi2sim on my 64-bit Ubuntu machine. Both gcc 4.8 and 4.8.1 is installed in my system. Even after setting and exporting the LD_LIBRARY_PATH AND LD_INCLUDE_PATH, and installing the ...
1
vote
0answers
12 views

Modify Ubuntu toolchain

In version 11.10 the flag "--as-needed" became default in the Ubuntu toolchain. Due to many problems I have with undefined symbols at runtime I don't want to change all the makefiles anymore. I want ...
12
votes
2answers
30k views

Building a 32-bit app in 64-bit Ubuntu

After hours of googling, I decide to give up and ask you experts. I am trying to build a 32-bit application (xgap if anyone interested) in my 64 Ubuntu 11.10. I added the CFLAGS=-m32 and the ...
3
votes
1answer
298 views

gcc won't link with -m32

Trying to compile even the simplest (int main(){}) program with -m32 on a 64-bit system fails: $ gcc -m32 test.c /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc.a when ...
0
votes
1answer
82 views

How to install libmudflap in 64-bit 14.04 “Trusty”

I wish to demonstrate mudflap working on this program, int main() { int tab[10]; int i; for (i = 1; i <= 10; i++) tab[i] = 0; return 0; } but I get an error, $ gcc -fmudflap ...
1
vote
0answers
118 views

Binutils won't install

I am trying to build a cross-compiler for i386-elf. I installed bison, flex and texinfo. My system came with gcc, binutils and Gnu make installed. I downloaded the source and ran configure. I then ran ...
0
votes
1answer
117 views

How to install an 'ansi c' compiler ? ? ? ( how can I extend GCC G++ with ANSI C )?

To explain the problem (try two): I can't install the lua compiler (lua dot org) with the newest version of Ubuntu, quote out of the manual to install lua: Installing Lua Lua is distributed in ...
-1
votes
1answer
372 views

cannot install lxml in virtualenv (python)

I cannot install lxml. In system i have python-lxml package, but i need other... Please help, if you can - my task is install lxml for development in virtual enviroment using virtualenv. I found this ...
0
votes
2answers
17 views

ELF shared libraries

I have a question about using libraries on Linux. Lets say I have a program called MYPROG and two libraries LIBABC.SO and LIBXYZ.SO. MYPROG loads the module LIBABC.SO with "dlopen RTLD_NOW". "dlopen" ...
1
vote
1answer
88 views

trouble installing gcc 4.8.1

I installed gcc as described below. it installed pretty well, but when I call gcc -v it just shows the former version gcc4.6.3. I do not know where to find the installation so that I can make a link ...
1
vote
1answer
31 views

OpenMP activation on geany

I am new to parallel programing and C, and was wondering how to active openMP on geany or another C program on linux? It is a simple hello world i am trying to make: #include <stdio.h> ...
1
vote
1answer
117 views

Lubuntu - compiling vlc v.1 command make and make install not working

Good day everybody! So, this is my first topic on Ubuntu's forum, and as a perfect Linux beginner and a non-English speaking student, I'll try to do my best to be the most explicit as I can. So ...
2
votes
0answers
586 views

Changing default GCC Compiler in 12.04

I just downgraded from 13.04, which seems to have some stability problems right now, and moved back to 12.04.LTS. I installed the GCC 4.8 compiler, which is not the default GCC compiler on 12.04. I ...
0
votes
0answers
30 views

Installing GCC 4.9 on 12.04 (precise) [duplicate]

I can't find any ppa's that provide gcc 4.9 for Ubuntu 12.04. Any suggestions on how to obtain it? Note: this is probably not a duplicate question. Related questions are: gcc 4.8 for 12.04: ...
-1
votes
1answer
72 views

GCC 4.8.1 to GCC 4.6.3

i am using ubuntu 12.04. Initially ubuntu 12.04 have gcc 4.6.3 with it. I upgraded it to 4.8.1. But now one of my application that was working fine with 4.6.3 are not working with 4.8.1. I want to ...
0
votes
1answer
330 views

Building nginx on Ubuntu with cache_purge module - help?

I have been trying to rebuild nginx with cache_purge module from http://labs.frickle.com/. I did the following and somehow the new build doesn't seem to include the module. Here is what I did: ...
0
votes
1answer
47 views

makeMKV setup error

When I run sudo bash configure (./configure doesn't work), I get this: checking whether we are cross compiling... configure: error: in /media/pitaj/Shared/Documents/makeMKV/makemkv-oss': ...
0
votes
2answers
33 views

Downgrade to GCC < v3.0

For specific reasons I have to downgrade my GCC to version 2.x using apt-get (not downloading and compiling the source) Is that possible? If yes, how can I find the repository address and install it ...