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
23 views

How can I install oldest gcc version (gcc-1.21) on ubuntu?

I have a project that is possible to install gcc-1.21 on ubuntu or not? if yes, how? please, I need a full instruction, i'm noob :(
0
votes
1answer
20 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
26 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 ...
0
votes
0answers
9 views

How To include graphics.h and conio.h headers files in gcc++ compiler in ubuntu 13.04 [duplicate]

To include graphics.h and conio.h headers files in gcc++ compiler
1
vote
0answers
57 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 ...
0
votes
2answers
55 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.
0
votes
0answers
40 views

/usr/bin/ld: cannot find -lXmu

I am trying to make files from gpucomputingsdk_3.1_linux.run but I get the following error /usr/bin/ld: cannot find -lXmu can you help me how to solve this? and also how can I find what packages to ...
2
votes
0answers
382 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
0answers
75 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
925 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
305 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
45 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 ...
0
votes
1answer
36 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
52 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
2answers
461 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 ...
0
votes
0answers
45 views

activate custom CFLAGS & CXXFLAGS on dpkg-buildpackage system (for firefox20 build)

i need activate -O3 -march=native -mtune=native options on CFLAGS CXXFLAGS. now i cant this on dpkg-buildpackage. system using its own settings.
1
vote
2answers
228 views

graphics.h, conio.h and dos.h not working in gcc

I am working on a project related to mouse programming. I am having a problem that graphics.h, conio.h and dos.h not working in gcc. I tried ...
1
vote
0answers
46 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 ...
1
vote
1answer
80 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 ...
4
votes
1answer
110 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
81 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 ...
8
votes
2answers
296 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
458 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 ...
0
votes
0answers
46 views

Ubuntu 12.04 32-bit - Clang -nostdsysteminc -nobuiltininc -nostdinc not excluding system headers

Despite adding -nostdsysteminc -nobuiltininc -nostdinc to Clang 3.2 command line, I'm still getting the system C++ headers: clang -cc1 version 3.2 based upon LLVM 3.2svn default target ...
1
vote
2answers
62 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 ...
8
votes
4answers
4k views

How to install gcc-4.8 in Ubuntu 12.04 from the terminal

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
58 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 ...
1
vote
1answer
45 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 ...
4
votes
1answer
255 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 ...
3
votes
1answer
188 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
0answers
87 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
36 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
0answers
58 views

Question regarding upgrading to GCC 4.7

I have just updated to gcc-4.7 & g++4.7: chan@Ubuntu:~$ sudo apt-get install gcc-4.7 Reading package lists... Done Building dependency tree Reading state information... Done gcc-4.7 is ...
0
votes
1answer
216 views

Error 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 pranav@pranav-Inspiron-1545:~/dependency$ tar -xvf ...
0
votes
1answer
64 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
36 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 ...
0
votes
0answers
128 views

ns-2.28 installation problem in ubuntu-12.04

I have installed gcc41-compat-4.1.2-ubuntu1210_i386.deb and g++41-compat-4.1.2_i386.deb and then reboot. After that I have done following: tar xvf ns-allinone-2.28.tar.gz patch -p0 < ...
0
votes
0answers
87 views

gfortran dependency hell

I was trying to install an R package which said it couldn't find -lgortran. So I uninstalled gfortran. However, when I tried to install it again, I got the following error gfortran : Depends: ...
1
vote
1answer
63 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?
1
vote
2answers
114 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 ...
0
votes
1answer
304 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 ...
8
votes
1answer
153 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 ...
1
vote
3answers
2k 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: ...
4
votes
2answers
253 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 ...
3
votes
3answers
519 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 ...
4
votes
1answer
650 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 ...
0
votes
0answers
72 views

GCC error message: gcc-4.6: not found (hardened-cc could not find target)

Evening my friends. I have a question for you, because I know that you can help me. I got an error when I want to compile (or something like that) with this command: gcc-4.2 -O -fbuiltin ...
1
vote
1answer
71 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. ...
1
vote
1answer
68 views

linking cpp object file to c object file and create executable

Suppose i have a c++ file, created an object file and c file created another object file. Now i need to link both into one executable. While i'm trying it is giving errors about c++ not found. Can ...
0
votes
0answers
45 views

Why gcc in 64 bit ubuntu doesn't detect the following array overflow? [closed]

So my code is #include <stdio.h> #include <string.h> main() { char *a="123456789abcdef"; char b[10]; int i=0; while((b[i]=a[i])!='\0') ++i; printf("%s ...

1 2 3 4