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

0
votes
0answers
5 views

XM3DEDIT won't run on v.14.04.4 LTS DeskTop

My C coded program (XM3DEDIT) runs OK on console for other Linux (Red Hat and Precise-Puppy). But not on latest Ubuntu 14.04.1 and openSUSE 13.1 DeskTops. One problem is I can't find console or ...
0
votes
0answers
17 views

U-boot build fails - cannot find lgcc / libgcc.a

I am using Ubuntu 12.04 LTS 64 bit and trying to create a Linux Image for the SAMA5D36-EK. In doing so I need the mkimage command. According to website www.at91.com/linux4sam/bin/view/LinuxSAM/U-Boot ...
0
votes
0answers
16 views

How to call a older version gcc? [duplicate]

My ubuntu is 14.04, the default gcc and g++ is 4.8, I installed gcc and g++ 4.4 manually, so how can I specify the older version of gcc to call when I compile a program?
0
votes
0answers
21 views

Rpc Programming

I am compiling the client program using the command: cc -o chkdate chkdate.o date_clnt.o -lrpc But is giving me the following error : /usr/bin/ld: cannot find -lrpc I am using Ubuntu 14.04. ...
2
votes
1answer
17 views

Undo update-alternatives

I had to run the command sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20, but unfortunately I misstyped and wrote sudo update-alternatives --install /usr/bin/gcc gccc ...
0
votes
1answer
26 views

gcc compile error

I built a cross compiler on Ubuntu 14.04 32 bit for MIPS platform before. but now I can't compile ordinary C programs with GCC. i removed and reinstalled everything but every time i get this error. ...
0
votes
0answers
29 views

OsmocomBB - compile error

I tried to install OsmocomBB on my Ubuntu, I've got gnu-arm-toolchain, but when I'm compiling there is an error: configure: error: in `/home/robert/OsmocomBB/osmocom-bb/src/shared/libosmocore/build- ...
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
41 views

Ubuntu 10.04 update GCC 4.8.1 to GCC 4.8.2

I installed GCC on Ubuntu 10.04 using the following commands: sudo apt-get update sudo apt-get install gcc-4.8 sudo apt-get install g++-4.8 sudo update-alternatives --install /usr/bin/gcc gcc ...
0
votes
1answer
66 views

Ubuntu 14.04 GCC 4.8.2 link dynamically against (older) GLIBC 2.11.1

For the needs of my project I need to use G++ 4.8.2 and GLIBC 2.11.1. Ubuntu 14.04 comes with EGLIBC 2.19. How can I make G++ link dynamically against GLIBC 2.11.1? If there is, how do I go about ...
6
votes
1answer
2k views

Why can't I compile GLIBC on Ubuntu 12.04?

I'm trying to compile the Linux From Scratch kernel, version 7.1 on Ubuntu 12.04, running inside of a virtualbox. I've worked through a part of the tutorial successfully, but when I reach Step 5.7: ...
0
votes
1answer
18 views

Ubuntu 14.04 libc.a file not recognized

When i try to compile a simple .c file with gcc i always get this error: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libc.a: file not recognized: File format not recognized i tried ...
2
votes
1answer
40 views

how to make a static binary of coreutils?

I'm trying to make a static binary of rm, so I tried compiling coreutils with configure; make SHARED=0 CC='gcc -static'; make install but I keep running into errors. First make complains about ...
1
vote
1answer
79 views

asm/errno.h: No such file or directory

I'm trying to install gcc 4.8.1 at the moment. Currently 4.8.2 and 4.9.1 are installed. I downloaded an 4.8.1 from here http://gcc.cybermirror.org/releases/gcc-4.8.1/ . After extracting the files I ...
1
vote
1answer
686 views

x86_64-w64-mingw32-g++: cannot execute binary file: Exec format error

I have 64bit ubuntu virtual machine and a 64bit binary still getting the Exec format error. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.1 ...
0
votes
0answers
27 views

Ada Compilation problem

hello I am using ubuntu 14.04 LTS and I am using Code::blocks for writing c program as well as Ada program. C is compiling and running fine when I am using the command "gcc -o test test.c" but when I ...
0
votes
2answers
68 views

gcc compiler in ubuntu

I created a simple C program which prints "Hello world" as output and saved it as test.c. Compiled it in terminal as gcc -o test test.c & run it as ./test but the there is no output showing. If ...
-1
votes
0answers
70 views

bloomberg python api blpapi3.5.5 install gcc error in ubuntu

i am try install bloomberg python api blpapi-3.5.5 in ubuntu but gcc error are show when i am install..how to solve this issue. there error massage.. /home/najeeb/Desktop/pyqt1/blpapi-3.5.5# python ...
4
votes
3answers
8k views

Cross-compilation issues with GCC/G++

I am using gcc to compile a C++ application on my CI server (http://ci.berboe.co.uk) and as the vps that it is compiled on has the x86-64 architecture I need to cross-compile to get the compiled ...
0
votes
1answer
1k views

How to install gcc-4.7-arm-linux-gnueabihf on Ubuntu 12.04?

I want to install gcc-4.7-arm-linux-gnueabihf or greater on Ubuntu 12.04, any suggestion? The default one is gcc-4.6-arm-linux-gnueabihf.
3
votes
1answer
604 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
554 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
120 views

how to run a C file and various files associated with that(makefile, .h ,.c)?

I have to make a C program to solve hungarian method for Assignment problem. So I downloaded a reference from web ,having (makefile,test.c,hungarian.c,hangarian.h,readme ,) ,, Now I successfully run ...
0
votes
0answers
129 views

How to change gcc-4.9-base version without removing dependecies?

I have a freshly installed Ubuntu 14.04.1 but cannot install nvidia-331 driver because of dependencies conflict: lib32gcc1 should be installed but it conflicts with already installed gcc-4.9-base ...
0
votes
0answers
66 views

Downgrade gcc from 4.8 to 4.7 [duplicate]

I have downloaded the latest version of ubuntu Desktop 14.04.1 LTS. The gcc version is gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2. I would like to change it to the 4.7.2 20130108 [gcc-4_7-branch revision ...
0
votes
1answer
59 views

font configuration warning [duplicate]

when I was doing c program in Ubuntu 12.04 , there is a font configuration warning shown by terminal. What should I do? shayna@shayna-Vostro-3446:~$ gedit hello6.c Fontconfig warning: ...
0
votes
1answer
30 views

GCC Compiled program not running in a new Window

What i am Doing? I have created a simple c Program that runs and executes a system Command the code is as follows #include <stdio.h> #include <stdlib.h> #include <string.h> ...
0
votes
0answers
63 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 ...
0
votes
1answer
93 views

-std=c++11 not recognized on gcc 4.8.1

I just followed an answer to this question to update my gcc version to 4.8. 1 on Ubuntu 12.04, which I thought would support C++11. However it does not seem to. When I try to compile something with ...
57
votes
4answers
113k views

How to install gcc-4.8

I checked the gcc version on my system. It is currently at 4.6.3. I read that gcc-4.8 is out. I tried the following commands without success: sudo apt-get install gcc (gcc is already the newest ...
0
votes
1answer
72 views

How to install gcc-4.6 (4.6.3-1ubuntu5) Source Package

I have recently started working on ubuntu and I have been facing a lot of difficulties installing programs in it. I don't know how I managed to install NetBeans and JAVA JDK and JRE. Unfortunately the ...
1
vote
1answer
83 views

gcc doesn´t work

I have a problem with GCC I try to compile Wine 1.7.26. When I use the ./configure command I get an error: C compiler cannot create executables See `config.log' for more details This file contains ...
0
votes
0answers
50 views

Ubuntu Touch in Nexus And GCC

I install UBuntu touch into my nexus: Why I can NOT run a simple hello world application compiled with gcc directly using the terminal console. I get permission denied. But I am able to run thourght ...
1
vote
3answers
57 views

Problem installing gcc compiler [on hold]

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
1k 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
172 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 ...
5
votes
3answers
5k 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
1answer
55 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: ...
1
vote
1answer
121 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 ...
0
votes
2answers
53 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
118 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
35k 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
16
votes
4answers
19k 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
106 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
446 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
43 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
116 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
vote
0answers
125 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 ...