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
1answer
38 views

I have seen these in when trying to build a cross compiler what does these mean

../gcc-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers export PREFIX="$HOME/opt/cross" export TARGET=i586-elf export ...
1
vote
0answers
109 views

Installing GCC Cross-Compiler for i586-elf

I was following a tutorial http://wiki.osdev.org/Main_Page to build an OS. I needed to install a cross compiler for i586-elf (Executable and Linkable Format). How to install it on ubuntu 12.04 ?
1
vote
1answer
442 views

Is it possible to let gcc 4.7 and gcc 4.8 co-exist in Ubuntu 13.10

I have some development work, it seems that GCC 4.8 will not work well with other development tools, so I may have to stick with GCC 4.7, but I am not sure if this is allowed in Ubuntu 13.10(64bit). ...
1
vote
1answer
101 views

Compiling C source file without .c suffic

Let hello_world be a valid C source file. When I try to compile I get gcc hello_world // hello_world: file not recognized: File format not recognized I know I could rename to have .c suffix, but if ...
0
votes
0answers
547 views

How do I compile with GL/glew.h?

Whenever I try to compile a C++ file using: g++ cgaTOH.cpp I keep getting the following error: fatal error: GL/glew.h: No such file or directory Could someone advise on how to get GL/glew.h ...
0
votes
2answers
552 views

Cross compiling, library gmp not found

I'm trying to cross compile StrongSwan package on Ubuntu for Synology NAS using official Synology toolchain. Host: hostname = ubuntu uname -m = i686 uname -r = 3.8.0-32-generic uname -s = Linux ...
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 ...
1
vote
3answers
119 views

Why am I getting these undefined errors when I compile a C++ program in terminal?

I have a C++ program that compiles and runs perfectly in Code Blocks. However when I try to compile it from the terminal using: gcc -g main.cpp -o Main I get a lot of undefined references: And ...
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 ...
2
votes
0answers
325 views

Binary package for gcc 4.8.2 on Ubuntu 12.04?

Following this answer, I have installed gcc 4.8.1 on Ubuntu 12.04 a couple of months ago. Unfortunately, I encounter bugs very frequently, varying from failing to compile valid programs to crashing. ...
2
votes
1answer
1k views

Bochs Compiling Error AGAIN

I'm trying to compile bochs with this command: ./configure --with-x11 --with-wx --enable-ne2000 --enable-iodebug --enable-disasm --enable-debugger --enable-e1000 --enable-usb --enable-pci it works, ...
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
0
votes
0answers
54 views

Error when linking two dynamic libraries on Ubuntu 12.04

There are two libraries: First library - libhello.so cat hello_child.c #include "hello_child.h" int put_my_msg( char *messg ) { printf( messg ); return -1; }; cat hello_child.h #include ...
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 ...
0
votes
1answer
3k views

Terminal commands for installing g++ 4.8?

Could somebody please advise how I could install g++ 4.8 ? I understand its not an official release yet (and that I would need to manually download a file) but I get internal compiler bug issues with ...
0
votes
1answer
954 views

C printf not working on ubuntu 13.10 terminal

I'm new in ubuntu so please bear with me. I need to create a C based program for a course in my university. I was using openSUSE as the OS and konsole as the terminal emulator when I was in the ...
2
votes
1answer
128 views

How Reliable is Virtual Machine GCC Binaries

I have an app which I need to generate the following: Ubuntu 32/64 bits and the same to Windows. Now I have 64Bits Ubuntu 13.04 and I have Virtual Box with 13.04 32bits on the same machine. How ...
0
votes
1answer
850 views

“The program 'g++' can be found in the following packages”

I have g++ 4.6, 4.7 and 4.8 installed, but not g++ itself. I am using Ubuntu 12.04. If I do: g++ --version it says: The program 'g++' can be found in the following packages: * g++ * ...
0
votes
0answers
750 views

Get latest G++ (4.7) for C++11?

Netbeans is complaining because I selected C++11 and my G++ version is 4.6 (4.7 supports C++11). However, I have tried: sudo apt-get install build-essential But g++ --version tells me I have ...
1
vote
0answers
900 views

gcc problem -> stdio.h not found

I have to compile one programme. theoretically i need just to change the two path... can you help me? Makefile # Original #CC=arm-1136jf_s_r1_vfp_hard_float-linux-gnueabi-gcc #CFLAGS= -O3 ...
1
vote
0answers
34 views

How to install gcc-4.8 (x64) on 12.10 [duplicate]

I want to install the newer 4.8 version of gcc, and when I searched for a solution i found this. But when trying to use the solution I ran into a quite annoying problem: sudo add-apt-repository ...
1
vote
1answer
1k views

CPUMiner won't compile

I am trying to compile a CPUMiner program, but get errors which I don't know what to do about. I am compiling as said here: http://www.return1.at/bitcoin-miner-ubuntu/ The error is: checking build ...
1
vote
0answers
531 views

pthread link failure on Ubuntu 13.10 64 bit with multilib support

I am re-compiling a C application that linked fine on Ubuntu 13.04. It is failing to link (-lpthread -lrt) with: undefined reference to `sem_post' undefined reference to `pthread_create' etc. ...
0
votes
1answer
217 views

How I can install g++ 4.7.2?

Hi I need to install g++ version 4.7.2, but every attempt It installed the latest version 4.7.3. How I can do to install the version 4.7.2? Thank you. Translated from Spanish
1
vote
0answers
66 views

Cross compilation of udns for power pc

I have libraries of x86 architecture that I want to cross compile for power pc. I have already cross compiled different libraries for power pc by setting environment variables for powerpc and using ...
1
vote
0answers
736 views

gcc-4.8 Header files

I am having some trouble using the header files provided by gcc-4.8 since updating to Ubuntu 13.10. When I compile with the Intel compiler icc, it complains about not being able to find the header ...
1
vote
1answer
260 views

arm-none-ebai-gcc does not work from mounted directory

I want to build project for ARM micro controller. For this purpose in folder with project was placed script, which download toolchain and build him. After run this script toolchain was placed in ...
-1
votes
1answer
712 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 ...
1
vote
1answer
5k 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
87 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
298 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
131 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: ...
0
votes
0answers
531 views

Cannot load libmpc.so.3 while makeing gcc

I want to install gcc4.8.1 in my ubuntu 12.04 system. I have installed neccssary libraries include libmpc.so.3. But it report "error while loading libmpc.so.3" while making. I'm sure that libmpc.so.3 ...
3
votes
1answer
31k 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
8k 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 ...
4
votes
1answer
1k 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
284 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
426 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
104 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 ...
0
votes
0answers
186 views

why do I get undefined reference to zheev when linking against lapack

Using gcc version 4.6.3 I try to compile C code that invokes the LAPACK routine zheev, but I get the following error message: In function 'HermiteEigValVec': HermiteEigValVec.c (text+0x192): ...
2
votes
1answer
3k 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
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
votes
1answer
8k 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
168 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
342 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
438 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
578 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
1k 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
860 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 ...
1
vote
0answers
220 views

Unmet dependencies after trying to install gcc-4.7 on Ubuntu 12.04

I know there are already many questions about unmet dependencies but none of them helped me so far. Even this really detailed answer (How do I resolve unmet dependencies?) didn't solve my problem. ...