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

2
votes
1answer
10k 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 ...
-2
votes
1answer
301 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
585 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
969 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
2k 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
1k 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
76 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
1k 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
603 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
257 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
93 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
424 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
458 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
277 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
3k 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
9k 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
3k 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 ...
3
votes
1answer
5k views

How to compile & install Emerald window manager in Ubuntu 13.04 64bit?

Please give me directions to compile & install Emerald specifically in Raring Ringtail 64bit edition. I've tried to compile it from the source many times, but had no luck.(Compile log : ...
1
vote
3answers
3k views

Can't install gcc 4.8, dependency issues

I tried downoading 4.8 for 12.04 from https://launchpad.net/~ubuntu-toolchain-r/+archive/test/+packages (I did not find for 13.04 as is mentioned here: How to install gcc-4.8 in Ubuntu 12.04 from the ...
0
votes
1answer
4k views

Installing proxychains. HELP NEEDED! [duplicate]

OK so i am new to linux. I am trying to install proxychains but im sure it has dependencies that i do not have on my system can somebody look at the following script and tell me the list of packages i ...
1
vote
1answer
1k views

Make gcc coloring the default

Is there a way to automatically make gcc color its output? I am looking to avoid an alias as the the command is commonly used in makefiles (where it will not be used). Is there an easy way to do ...
2
votes
1answer
198 views

How to repair a broken compiler?

Few months ago I was using gcc 4.6. In order to get C++11 functionality I upgraded to gcc 4.7 using a PPA. Today gcc 4.7 was recommended to me through the update manager. I just mindlessly clicked ...
1
vote
1answer
2k views

Building GCC 4.8 on Ubuntu 12.04

I am trying to install GCC 4.8 on Ubuntu 12.04, but during make I get the error shown below where compilation aborts. (To the best of my knowledge I have all prerequisites satisfied as I have already ...
1
vote
0answers
405 views

Ramifications of uninstalling GCC 4.7 in leu of GCC 4.6 in Quantal?

I currently have both the gcc-4.6 and gcc-4.7 packages installed in Quantal. I do a lot of software development but haven't had a need for any features that are specific to GCC 4.7. Therefore, in ...
2
votes
2answers
1k views

Cannot find -lgfortran

I'm trying to install a package in R (package "ks"). It fails with error message: /usr/bin/ld: cannot find -lgfortran I've already installed the Ubuntu package build-essential: sudo apt-get ...
5
votes
1answer
1k views

warning messages while compiling c program using gcc [closed]

I am new to linux. I use gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 on Ubuntu 12.04 LTS. When I compiled the c program using pointer, I got the -Wformat warning as shown below. But if I execute a.out ...
0
votes
1answer
897 views

/usr/bin/ld: cannot find -lgsl on Ubuntu 10.04

I was given a program to install and after running the makefile, I got the error gcc -o SD_Plot SD_Plot.o -lgsl -lgslcblas -lm /usr/bin/ld: cannot find -lgsl I already installed the GNU ...
9
votes
2answers
828 views

Can't compile with GCC on Ubuntu 12.04

I'm trying to compile and run the below C program on my Ubuntu & Windows machines with both GCC & VC9. However, I'm facing below issues: On Ubuntu machine: GCC compiles fine, but when run, ...
2
votes
1answer
2k views

GCC 4.8 / MINGW W64 4.8

There is a PPA where I can find these packages for 12.04? Also a build script will do the job! I've tried to download it from sources but the dependencies are a mess. I'd like to start porting my ...
4
votes
3answers
9k views

How to fix compilation errors that mention “stray ‘\342’” and “stray ‘\200’”?

I wrote this program: #include<stdio.h> int main() { printf(“Hello World\n”); return 0; } I saved it as first.c and tried to compile but receiving this problem I have installed even gcc ...
64
votes
4answers
145k 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 ...
3
votes
1answer
529 views

Use Old GCC Version

I've been trying to get an old version of GCC for my Ubuntu but I can't find any working way to achieve that. I'd like to use the version 4.1.2 of GCC, and I currently got the 4.7.2. How may I ...
2
votes
1answer
397 views

Errors while compiling allegro library program on gcc

I've tried installing allegro library on my system.I didn't get any error while installing the library, but it seems that something went wrong while installation. My code along with the errors I'm ...
6
votes
1answer
2k views

Building webkit from source

I tried to install the webkit applicaion from sources using this manual: https://help.ubuntu.com/community/WebKit When I type: ./autogen.sh --prefix=/usr the following error occurs: checking for ...
6
votes
3answers
11k 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 ...
2
votes
1answer
3k views

error in installation of gcc on ubuntu Ubuntu 12.04

I want to install gcc on a ubuntu machine but got the following errors: t@lab45:~# apt-get install build-essential Reading package lists... Done Building dependency tree Reading state ...
2
votes
0answers
118 views

gnudialer Make Problem [closed]

I am trying to build gnudialer. I followed these steps to the T. Now on the last step, making the gnudialer, I get this error: dispo.h:71:1: warning: deprecated conversion from string constant to ...
1
vote
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 ...
0
votes
1answer
380 views

Scanalyze install

I am trying to install Scanalyze. I downloaded the source code, and in the compilation instructions for Ubuntu, he has mentioned that for later versions of gcc (mine is 4+), there is a separate ...
1
vote
2answers
201 views

gcc or cc no longer seems to work in 12.04 lts

I recently installed 12.04 LTS and I would like to compile short c programs. When I enter gcc or cc at the command promp to compile a simple test program "test.c"I get the following: test.c: In ...
1
vote
1answer
98 views

What gcc version do I need?

I have installed ns-2.28 on ubuntu 12.04. My kernel version is 3.2.0-29-generic-pae. What gcc version matches my ns-2.28 & 3.2.0-29-generic-pae?
2
votes
2answers
1k views

gcc Unable to exec gcc.real: No such file or directory

./configure checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/home/mob/freeglut-2.8.0': configure: error: C compiler cannot create executables See ...
1
vote
2answers
5k views

gcc and g++ are installed but ubuntu says they are not installed

I have installed g++ and gcc from repository on ubuntu 12.04 ad you can see that they are indeed installed mahmood@pc:~$ dpkg -l | grep gcc ii gcc-4.4 4.4.7-1ubuntu2 ...
10
votes
1answer
1k views

How can I get GCC 4.7 installed on Precise?

The latest version of GCC in the Precise archives is 4.6.3. However, GCC 4.7 adds support for some newer C++11 features (like delegating constructors). Quantal's package archives have GCC 4.7.2 ...
5
votes
3answers
38k views

cannot find crti.o: No such file or directory

When I want to make gcc 4.1.2 (ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.1.2/gcc-4.1.2.tar.bz2) on my ubuntu 12.04 (x86_64). The current active gcc is 4.6.2. I did: ...
5
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 ...
6
votes
3answers
12k 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 ...
14
votes
1answer
26k views

Cross-Compile for ARM?

How do I set up GCC for cross compiling for the ARM processor? The host would be on x68 ( AMD64 - Ubuntu 12.04 ) and the target would be ARM ( Raspberry Pi as well as Pandaboard - will do separate ...
1
vote
1answer
228 views

Restoring gcc and g++ flags

I've recently done something really stupid: I wanted to configure NetCDF libraries using the Intel Fortran compiler and, therefore, I was following instructions for that kind of procedure. ...