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
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 ...
5
votes
3answers
2k views

Downloaded g++ 4.8 but cant 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
2k 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
873 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
124 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
796 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
635 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
864 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
516 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
213 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
0
votes
0answers
60 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 ...
0
votes
0answers
690 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
246 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
651 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
84 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
284 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
129 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
480 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 ...
2
votes
1answer
27k 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 ...
1
vote
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 ...
2
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
276 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
411 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
99 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
182 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
7k 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
158 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
327 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
414 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?
0
votes
0answers
411 views

startx not working in ubuntu 13.04

I used https://launchpad.net/~ubuntu-toolchain-r/+archive/test ppa for installing gcc 4.7. But now my ubuntu is not booting to graphical mode. I am getting this error /etc/X11/xinit/xserverrc: 3: ...
2
votes
0answers
529 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.
0
votes
0answers
50 views

removed all gcc package 4.1, 4.4&4.3

I just removed all gcc package 4.1, 4.4 & 4.3. My Ubuntu 10.04 has been broken, And my very important files and NS- 2 simulation results I think has been also removed. Please help me is there any ...
1
vote
0answers
818 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
214 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. ...
0
votes
1answer
235 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
808 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
814 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
541 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 ...
1
vote
0answers
70 views

Why I have to remove so many packages when I try to install zlib1g-dev:i386

When I try to install zlib1g-dev:i386, I got below message: sudo apt-get install zlib1g-dev:i386 Reading package lists... Done Building dependency tree Reading state information... Done The ...
3
votes
1answer
499 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
2k 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 ...
12
votes
3answers
24k 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 ...