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

-1
votes
1answer
1k views

How do I compile lbflow 1.1?

After using "sh ./configure" command, I encountered another error during lbflow package installation (a scientific one). The sequence of operations is here with error: ./configure --disable-gts ...
3
votes
1answer
10k views

Error : Cannot run C compiled programs. if you meant to cross compile use --host' Ubuntu

I'm completely new to Ubuntu I downloaded and unpacked a tar.gz package, after extraction, it is said in its documentation : "type ./configure --disable-gts" But when I run this command alone it ...
1
vote
1answer
146 views

Different versions of libstdc++6 on 12.04

After upgrading Server 10.04 to 12.04, I was receiving errors related to lgcc_s while trying to compile with g++ and gcc. There are several versions of libgcc_s installed in ...
0
votes
1answer
489 views

Help on installing a tar.gz on Ubuntu

Okay, I am trying to install, Icecast http://www.icecast.org/ guggy@guggy-pc:~/Downloads/icecast$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build ...
2
votes
0answers
178 views

Problem when compiling GCC in Ubuntu

I have run into the well known problem when installing GCC: configure:3605: error: in /usr/local/gcc-4.8.1/i686-pc-linux-gnu/libgcc': configure:3608: error: cannot compute suffix of object files: ...
10
votes
1answer
73k views

configure: error: C compiler cannot create executables

I was trying to install rvm using \curl -L https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfiles. It worked fine until I got a configure error: Error running './configure ...
2
votes
1answer
15k views

cannot find -lgcc_s

I am attempting to compile a program with g77 and I keep getting the following error: /usr/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status I saw on another forum that this is ...
6
votes
1answer
6k views

GDB crashes with: ImportError: No module named libstdcxx.v6.printers

I have a problem with GDB. Whenever I try to debug any C++ program, just after running it, GDB gives this error: (gdb) run Starting program: /home/errikos/Workspaces/tests/a.out Traceback (most ...
0
votes
1answer
412 views

wsnet simulator: Segmentation fault (core dumped) during installation

I installed wsnet simulator about one month ago and everything was OK (I had any problem). Now I uninstalled wsnet ( sudo rm –r /usr/local/wsnet.2) I want to install it again and I follow install ...
0
votes
1answer
614 views

ld: cannot find -ljson

I tried running sudo apt-get install libjson-glib-dev with no luck. Was not able to find anything useful by googling either. Anyone know what package I need to install to be able to link json?
0
votes
1answer
167 views

Unmet depencies after messing around with gcc symbolic links

I'm a linux noob and I messed up symbolic links on Ubuntu 13 for my gcc 4.7 which should be installed but I can't remove it nor use it: paul@paul-linux:~$ sudo apt-get remove gcc-4.7 Reading package ...
2
votes
1answer
9k views

Is there any library similar to <conio.h>?

I used the IDE DEV C++ to compile C programs on Windows and I used the libraries and , but now I use Ubuntu and downloaded the Codeblocks, but it does not have these libraries. I just wanted to use ...
1
vote
1answer
103 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
27k views

How to compile a C program that uses math.h?

I am having problems in math.h header file and when I use square root function as in sqrt(d). But my compiler is not supporting this. Please advise me about this problem. My Ubuntu version is 2012.
0
votes
1answer
306 views

How to compile git for solaris under ubuntu? (cross compile git)

I'm renting webspace with SSH access and I want to host a git repository on it. I can log in using SSH and put websites up. However, git is not installed on the server. Unfortunately, GCC is also not ...
3
votes
1answer
563 views

How do I make a shell script in Ubuntu Terminal?

Now I don't know if that is exactly what it is called, so please forgive my bad terminology and correct me if I'm wrong, but I'm looking for a way to shorten this bit of code: gcc -o hello hello.m \ ...
0
votes
1answer
650 views

How can I manually install gcc tarball file in Ubuntu 12.04? [duplicate]

How can I manually install gcc tarball file in Ubuntu 12.04?
2
votes
0answers
982 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
1answer
3k views

GCC 4.7.3 uninstall

How can i uninstall GCC 4.7.3 and install GCC 4.5? I want to install 4.5 because otherwise my BF 1942 wont open with wine.
1
vote
0answers
1k views

gcc without g++?

I run Ubuntu 13.04 (x86_64 if it matters) which I recently installed. Before, when using 12.10, I had both gcc and g++ from the beginning. However, with 13.04 after I downloaded gcc-4.8.1 sources I ...
0
votes
1answer
441 views

cooja compiling error: msp430/bin/ld: cannot find -lc

I updated msp430-gcc to 4.7.0 version in InstantContiki2.6. When I simulate the hello-world example, it shows the following error: > make hello-world.sky TARGET=sky msp430-gcc -DCONTIKI=1 ...
1
vote
1answer
2k views

Trying to compile code results in error: make[1]: g++-3: Command not found

I am trying to compile a program on Ubuntu 12.04 (LTS), but the following error keeps resulting: evensteven@pc:~/Desktop/MimoComplexLdpc$ make all cd ./src; make; make[1]: Entering directory ...
1
vote
1answer
2k views

problem installing an older version of gcc

problem installing an older version of gcc Hi, I'm new to ubuntu:) I'm trying to compile a program in Matlab using mex (Matlab), but I'm getting an error that I'm using gcc version 4.6.3 and the ...
2
votes
0answers
1k views

gcc does no come up with new upgraded Kernel

After I figuerd out my ubuntu 12.10 amd64 with 3.5.X Kernel does not fill some queuing, and they've fixed that in kernel 3.8.x, I upgraded the kernel of my Ubuntu to v3.10-saucy with installing deb ...
-3
votes
3answers
1k views

How to install gcc and g++ compilers

I have tried these commands in terminal , sudu apt-get upgrade sudu apt-get update sudu apt-get install build essential but failed. Please help me, I am getting the following error. No command ...
4
votes
1answer
2k views

How to use multiple instances of gcc?

I have both gcc 4.7.3 and 4.8.1 installed But on running gcc --version I get gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see ...
1
vote
1answer
5k views

gcc segmentation fault on Ubuntu 12.04

I am trying to compile a C program on Ubuntu precise 12.04. Here's the program: #include <stdio.h> int main(int argc, char** argv) { printf("Hello World!"); return 0; } My gcc version is ...
13
votes
3answers
32k views

How do I install gcc 4.8.1 on Ubuntu 13.04?

I have a 64 bit UBUNTU 13.04 running gcc --version shows me gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3 But on May 31 2013 gcc 4.8.1 was released . And I don't know how to install it .. Can someone ...
2
votes
1answer
111 views

Error installing SHA

I'm trying to install SHA using the following command perl -MCPAN -e 'install Digest::SHA' I also tried using: sudo cpan 'install Digest::SHA' But i'm getting a linker error: ...
0
votes
1answer
254 views

Mesa brokes down in Ubuntu 13.04 after installing gcc 4.8

I wanted to install gcc 4.8 from 4.7.3 with this following commands: sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y sudo apt-get update sudo apt-get install gcc-4.8-base after that gcc was ...
0
votes
1answer
117 views

Compilation problem for C++ program

How do I install g++ or pentium builder packages? Do I need to download those? Because when I try to compile the program and with this statement: g++ -Wall -W -Werror main.cpp -o HelloWorldCPP` ...
0
votes
3answers
3k views

cmath: No such file or directory #include <cmath>

I downloaded and try to installed the package "wfconvert" from this link http://qmcpack.cmscc.org/tutorials/bulk-solid. but I got some error. here what I did: copy the wfconvert folder in root "/" ...
3
votes
1answer
12k views

Compiling apib undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'

I want to compile apib on my ubuntu 13.04 box but I am having issues with pthread lib. This is the error that I get : $ colormake -j 5 cd src && make all make[1]: Entering directory ...
-3
votes
1answer
303 views

Is Gcc 4.8.1 RELEASE available under raring 13.04 ? ( no snapshot, only release )

I need full c++11 support and I need gcc 4.8.1 release, I'm under Ubuntu 13.04 64 bit, there is a gcc-snapshot package in the repository, but it's outdated and it's an old pre-release version. It's ...
3
votes
1answer
1k views

Reading an object file

I have installed a gcc compiler that is compatible another processor(not the one I am using). When i use the objdump command to read the object file i get the following, objdump -d one.o one.o: ...
1
vote
1answer
643 views

Generating a hex file(new to ubuntu)

How am I supposed to compile/generate a .hex file (object code) of a c program using a gcc compiler?. Will the procedure be the same for a different gcc compiler compatible with a different processor? ...
0
votes
1answer
1k views

msp430/bin/ld: cannot find -lc

I installed successfully msp430-gcc 4.7.0 compiler. The compiler at the final stage of the linking process it shows me the following error for Ubuntu 12.04. msp430-gcc -mmcu=msp430f1611 ...
1
vote
1answer
3k views

diff between x86_64-linux-gnu-gcc and plain old gcc?

I'm trying to compile something called a "Voice Cloning Toolkit" for Festival and HTS. (see: http://homepages.inf.ed.ac.uk/jyamagis/software/page37/page37.html) I've found that lots of things break ...
0
votes
2answers
2k views

How to install gcc-4.3 for NS2

I want to install NS2 in Ubuntu. I run the below command: sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3 But I got an error: Package gcc-4.3 is not available . . . E: ...
1
vote
1answer
78 views

Make works fine, but the result does not run. What now?

I am trying to run https://github.com/seanpringle/simpleswitcher on my ubuntu 12.04 I downloaded it and compiled it. However, when I run I get *** glibc detected *** ./simpleswitcher: free(): ...
0
votes
2answers
2k views

How to install gcc/g++ 4.4 and make links

Because I cannot compile some code by gcc/g++ 4.7, I want to install gcc/g++ 4.4. I searched the Internet and found some different way. I don't know what is the best solution. Is it possible to ...
2
votes
3answers
648 views

If statement in C isn't evaluating the conditions [closed]

Ok, so I'm new to Ubuntu and Linux OS. So far I'm loving it, specially the CLI. I also like programming but I'm a self learner, pretty new in this too. I wrote a small program using VIM and compiled ...
0
votes
1answer
290 views

compiled executable cannot run

cpp program. But now I cannot run it. It show that command not found. I compile it by; gcc `pkg-config --cflags opencv` OpenCV_ViolaJones.cpp -o OpenCV_ViolaJones `pkg-config --libs opencv` It's ...
1
vote
0answers
104 views

Problem with compiling fft using gcc

I have downloaded the source codes of Splash2 from here and i tried to compile fft.c using gcc command on my own machine but i got this error : fft.c:62:28: fatal error: parmacs_config.h: No such ...
0
votes
1answer
481 views

build-essential can't find gcc

I have ubuntu 12.04 installed. I just installed the gcc-4.6 and g++-4.6 from the same OS media. However when I attempted to install the build-essential package from the same OS media, it says gcc is ...
0
votes
1answer
485 views

My object code cannot be executed

I compile my c code with gcc and it creates an obj code but when I tried to run it it gives cannot execute binary file error how can I solve this problem can you help me? gcc -c ...
1
vote
0answers
288 views

Will gcc >= 4.7 ever come officially to 12.04? [duplicate]

We have ubuntu 12.04 LTS installed at our systems, and we would like to use gcc >= 4.7 for C++11 support. Will a version of gcc >= 4.7 be added to the standard repositories (any time soon) or will the ...
1
vote
1answer
4k views

How can i downgrade GCC 4.7.2?

i want to downgrade GCC and G++ 4.7.2 to some older versions, 4.0 perhaps. Any assistance? I'm using Lubuntu ATM.
6
votes
2answers
10k views

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 ?). ...
1
vote
1answer
4k views

Problem with /usr/bin/ld: main.o: undefined reference to symbol 'exp@@GLIBC_2.2.5'

During installation Emerald in ubuntu 13.04 when I write "sudo make" I have problem: libtool: link: gcc -g -O2 -pthread -I/usr/include/libwnck-1.0 -I/usr/include/compiz -I/usr/include/gtk-2.0 ...