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

Error message: ./configure CC=gcc CXX=g++

Can anyone please help me with this? I'm trying to install a bioinformatics tool called Trinity but this error message appears (below). What does it mean and how can I resolve it? Thanks! cd ...
1
vote
1answer
16 views

Error make: *** [.obj/channel.o] Error 1

Can anybody help me? when i built project qsopcast-0.3.4 thequang@thequang-Inspiron-N4030:~/qsopcast-0.3.4/src$ qmake thequang@thequang-Inspiron-N4030:~/qsopcast-0.3.4/src$ make g++ -c -pipe -g -Wall ...
1
vote
0answers
21 views

Gcc not installed and at the same time is updated to the latest version!

I'm trying to install one of the latest versions of gcc, but this is what I get: gcc -version The program 'gcc' is currently not installed. You can install it by typing: sudo apt-get install gcc ...
0
votes
0answers
8 views

Undefined reference to XLib functions when linking

I am attempting to build an old project which requires XLib functions. However, I am getting the following linking errors (plus many more): //usr/local/lib/libgdk.so: undefined reference to ...
5
votes
2answers
1k views

Remove gcc from Ubuntu

I want to completely remove gcc from Ubuntu. I am using gcc 4.9 which happens to be the latest version. How can I remove it completely from my system?
0
votes
2answers
462 views

Ubuntu 14.04 GCC 4.8.2 link dynamically against (older) GLIBC 2.11.1

For the needs of my project I need to use G++ 4.8.2 and GLIBC 2.11.1. Ubuntu 14.04 comes with EGLIBC 2.19. How can I make G++ link dynamically against GLIBC 2.11.1? If there is, how do I go about ...
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 ...
1
vote
2answers
60 views

Can't compile on Ubuntu 14.04 with gcc 4.8

I installed build-essential in Ubuntu 14.04 and created a test file helloworld.c with: #include <stdio.h> int main(void) { printf("Hello world\n"); return 0; } The output of gcc -o hello ...
2
votes
2answers
2k views

How to disable -Werror=date-time/macro “__DATE__” might prevent reproducible builds

I am trying to compile a driver for a Netis WF2190 adapter. Yes, I just downloaded the latest from them. How can I disable the -Werror=date-time in the build? I can't find it anywhere in the build ...
0
votes
0answers
14 views

Error in installation of MeTA (meta requires a compiler with at least C++0x support)

I followed procedure from https://meta-toolkit.org/setup-guide.html Steps==> sudo apt-get update sudo apt-get install software-properties-common add the ppa for cmake sudo add-apt-repository ...
1
vote
2answers
881 views

Error installing pynauty: “error: command 'x86_64-linux-gnu-gcc' failed with exit status 1”

I'm trying to install the pynauty Python package. When I ran python setup.py build, I got the following error. I have installed the dependencies. How can I successfully install this Python ...
3
votes
2answers
1k views

how to make a static binary of coreutils?

I'm trying to make a static binary of rm, so I tried compiling coreutils with configure; make SHARED=0 CC='gcc -static'; make install but I keep running into errors. First make complains about ...
0
votes
1answer
21 views

Will there be any problem to install two compilers on the same system?

I'm using Ubuntu 14.. Currently my gcc compiler is v5.1.. But now I need to use Matlab mex, which so far only supports gcc-4.7.*. Is it possible to install the gcc-4.7 compiler without reinstalling ...
0
votes
1answer
107 views

VMware workstation is not working with GCC 5.1.1

Ubuntu 15.04 GCC 5.1.1 after installing ubuntu 15.04 vmware is no longer working with gcc 5.1.1 while trying to launch vmware workstation ... pic : ...
0
votes
3answers
611 views

I am not able to compile a simple program using gcc

Wrongly I have install ia32-libs but my host system is 64 bit. Now whenever i try to compile c file i get a message as: unrecognized option '--64' I have uninstall th ia32-libs but I am getting ...
0
votes
2answers
137 views

Ada Compilation problem

hello I am using ubuntu 14.04 LTS and I am using Code::blocks for writing c program as well as Ada program. C is compiling and running fine when I am using the command "gcc -o test test.c" but when I ...
0
votes
0answers
33 views

Unable to Upgrade the glibc in Ubuntu 12.04

I am unable to Upgrade the glibc in Ubuntu 12.04.While executing the below commands it doesn't upgrade the glibc version. apt-get clean apt-get update apt-get dist-upgrade Even I am pretty ...
1
vote
1answer
23 views

How to reconfigure libtool after upgrading gcc

I am running Ubuntu 12.04 and was hit by this gcc bug. In order to fix this I installed a more recent version of gcc (following this procedure). Now gcc -v and g++ -v both work, but packages that use ...
0
votes
0answers
13 views

Setup cross-compile env. in eclipse for Kernel API

I'm cross compiling for a beaglebone black (that is running debian) on ubuntu and I want to make Kernel API calls from module.h, kmod.h, or firmware.h and those don't appear to be in the ...
-1
votes
0answers
24 views

Install/Use Specific Subversion of GCC

I am using Ubuntu 14.04 LTS, and I have some code that is not compiling correctly using a newer version of gcc (4.8.4). I would like to install and use an older subversion (4.8.2) that worked. I have ...
0
votes
3answers
88 views

how to fix configure: error: C compiler cannot create executables

used ./configure DFLAGS="-03" and this is the config.log checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... ...
0
votes
0answers
11 views

open3: exec of /usr/bin/gcc -v failed at /usr/local/bin/gcc

short version: I have been trying to downgrade my gcc and g++ and now it says open3: exec of /usr/bin/gcc -v failed at /usr/local/bin/gcc" even with a simple version check. Or it says - not found ...
0
votes
1answer
23 views

Matlab mex lstdc++ not found

I'm trying to compile a mex file in matlab. I'm running Ubuntu 14.04 and Matlab R2014b. The first dependency issue I faced was the GCC which needed a version 4.7.x, while my system was running 4.8.x. ...
2
votes
1answer
170 views

gcc is gone probably after an update

gcc was installed in my system at the start, I still remember using it but after some time it was gone and replaced by some other versions of gcc. When I type in gcc from the terminal several ...
0
votes
0answers
42 views

Missing usr/include/c++/4.7/i868-linux-gnu

I am using ubuntu 12.04 with c++ 4.6. I installed c++ 4.7 but it missing folder i868-linux-gnu. Anyone know why? and how to get it?
0
votes
1answer
5k views

when building u-boot /bin/bash: arm-none-linux-gnueabi-gcc: command not found

I am currently running Ubuntu 12.0.4 on a 64 bit machine. I have an AM335X development board. Along with the kit came the compressed kernel (linux 3,2), rootfs, u-boot, and ARM cross compiler ...
0
votes
0answers
49 views

Compiling Thunderbird 38 on Ubuntu Mate (Raspi)

I'm using Ubuntu Mate 15.04 on a Pi 2. Most of the things work out really fine. But the Lightning Addon seems to be buggy (most of the buttons cannot be clicked). So I tried to compile a more recent ...
0
votes
0answers
67 views

vlc can't compile

OS: (Ubuntu 14.04 32bit) linux ubuntu 3.13.0-32 generic 2014 i686 NDK: android-ndk-r10e JDK: adt-bundle-linux-x86-20140702 32bit java-version : java version "1.7.0-79" OpenJDK runtime Environment ...
0
votes
0answers
70 views

Prefix and Path for Cross GCC in Eclipse

I'm pretty new in ubuntu and have a problem with it. I wanna to write a c++ program in eclipse and compile it with cross gcc. At the first i Added "CDT" from "help-->install new software" Now when ...
4
votes
2answers
1k views

How to install g++ 5.1 on Ubuntu desktop 15.04 64-bit?

I'd like to experiment with the new GCC 5.1 C++ compiler on Ubuntu. So, I downloaded and installed Linux Ubuntu desktop 15.04 64-bit in a virtual machine. Then, in the terminal, I entered the ...
0
votes
1answer
32 views

Install GNU Toolchain on 15.04

I am following a tutorial which requires me to have the GNU toolchain installed - (gcc, ld, gas, etc). I know I can get gcc in build-essential. However, how do I get the rest?
0
votes
2answers
117 views

shall i need to install g++ to compile c++ files in Ubuntu 14.04.1

I am using Ubuntu 14.04.1 I want to know, Do I need to install g++ from the Ubuntu Software Center to compile the c++ files? Is GCC(GNU Compiler Collection) able to accomplish this instead? if the ...
1
vote
1answer
55 views

Use g++-4.8 with Qt

I am trying to compile a Qt project that uses the "override" keyword, and thus needs GCC 4.8. I have installed GCC 4.8 on my Ubuntu 12.04 machine already, and it lives in /usr/bin as gcc-4.8 and ...
0
votes
2answers
35 views

gcc fails to compile

I'm a newbee but adventuresome. I'm tri-booting Windows, Fedora, and Ubuntu 14.04 LTS (all 64). Learning but not using dpkg, apt, and apt-get. Starting to study C++ using Ubuntu (the only one with gcc ...
1
vote
1answer
81 views

Why am I getting this undefined reference error while trying to build a c++ project? [closed]

To fix another debug error, I added -std=c++11 to the build command. Now I'm getting a ton of "undefined reference errors like this one: In function encrypt(std::string&, int)': ...
1
vote
0answers
35 views

bug in ncurses.h? [closed]

I have been trying to compile a program I have written in C. I notice that there is an error in compiling saying: clock.c: In function ‘main’: clock.c:22:2: warning: passing argument 2 of ‘wgetnstr’ ...
1
vote
3answers
9k views

How to uninstall gcc 4.6.2 installed from source?

I have gcc 4.6.2 installed (installed from tar source) in my ubuntu server 10.10 64 bit, I have also installed gcc 4.4.5. I want to uninstall gcc 4.6.2 and make my old gcc 4.4.5 default. How can I do ...
0
votes
0answers
22 views

libgpg-error throws gcc fatal error

Attempting to install some GnuPG packages on Ubuntu 12.04 When attempting to install libgpg-error, I am getting a gcc fatal error. Here are the commands I am running (in the libgpg-error directory) ...
0
votes
1answer
58 views

Compile error, g++ and c++11 [closed]

Im trying to compile this code via g++, #include <iostream> #include <set> using namespace std; std::set<int> s; int main(){ for(int i=0;i<10;i++) s.insert(i); for(auto ...
0
votes
2answers
62 views

I screwed up my system no commands work at all

Command 'make' is available in '/usr/bin/make' The command could not be located because '/usr/bin' is not included in the PATH environment variable. make: command not found It happened after I did ...
0
votes
0answers
43 views

Make Error while building LDV for ubuntu 14.04

I am trying to build LDV project by following this.While running make console-tools , i am getting the following error. In file included from ../../aspectator/gcc/lto-streamer.h:27:0, ...
0
votes
1answer
71 views

How to run new added binaries using makefile

I have added some pre-compiled tools for developing ARM into the /home/charlie/bin/ARM directory. When I modify the path by PATH=/home/charlie/bin/ARM:"$PATH" I can execute arm-none-eabi-gcc in the ...
1
vote
0answers
37 views

Could not able to compile with /opt/ELDK42/usr/bin/ppc-linux-g++

here is my test.cpp #include<iostream> using namespace std; int main() { cout<<"hello world"; return 0; } $ /opt/ELDK42/usr/bin/ppc-linux-g++ test.cpp ...
1
vote
0answers
133 views

Python app crash after sending command “GPIO.setup( 7, GPIO.OUT)”?

Python app crash after sending command "GPIO.setup( 7, GPIO.OUT)" !!! Action step: pi@rp:~$ python3 Python 3.4.3 (default, Mar 26 2015, 23:09:09) [GCC 4.9.2] on linux Type "help", "copyright", ...
1
vote
2answers
48 views

PPA removed and purged but still showing available upgrades

This is on Ubuntu 14.04 (SERVER, so no GUI) Ok so earlier today I was asked to upgrade GCC to GCC 4.9 (current available is GCC 4.8 for Trusty). So following these directions I installed the PPA ...
0
votes
1answer
176 views

Install something without make install [closed]

I have been struggling for few days trying to install a software. I'm not actually working on Ubuntu but I think the steps to do are the same. Working on a gentoo (The operating system of the Robot ...
18
votes
2answers
161k views

Install gcc on Ubuntu 12.04 LTS

When I try to install gcc on Ubuntu 12.04 LTS Server with apt-get install gcc, I get the following error: The following packages have unmet dependencies: gcc : Depends: cpp (>= 4:4.6.1-2ubuntu5) ...
0
votes
1answer
62 views

how to read gcc input from external file

I'm trying to read the input for a c++ file y.cpp from the file file.in and save the result in file.out but I can't figure how to do it. for example, if the following code was in y.cpp ...
0
votes
0answers
55 views

Error in Installation of Qt5.x 32 bit on Ubuntu 12.04 64 bit

I want to install Qt5.x on Ubuntu 12.04 64 bit. But while installation I faced the problem of libsm6 missing. I learned Ubuntu needs 32 bit libraries for functioning. I followed this link and tried to ...
0
votes
0answers
29 views

Unable to run cudaminer on jetson

After downloading and running ./autogen.sh and ./configure execution of the make command gives the following error on my Jetson TK1 gcc -std=gnu99 -DHAVE_CONFIG_H -I. -msse2 -fopenmp -pthread ...