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

How to make one shortcut to compile and execute cpp file

I'm using Ubunru 15.04 GCC : 4.9.2 I usually use this command to compile my cpp files : g++ /path/file.cpp -o /path/output and it's cool ! so I made this into a shortcut with .desktop file ...
0
votes
0answers
10 views

Include error with gcc-avr

I installed gcc-avr and avr-libc using sudo apt-get install gcc-avr avr-libc. However, when I try to compile a code I get the following: main.c:1:20: fatal error: avr/io.h: No such file or directory ...
0
votes
0answers
8 views

I am facing a problem while running a graphics program in c(gcc) [on hold]

My program doesn't exeute properly after running a code when new window open where user is asked to enter input that window automatically becomes irresponsible and get vanished. And i received an ...
0
votes
0answers
8 views

I want to install systemc2.2.1 on Ubuntu 14.0.4

Hi i am a newbie and want to install systemc2.2.1 on ubuntu. I have gcc 4.8 in my ubuntu but that does not support systemc2.2.1. Now kindly suggest me proper gcc for systemc2.2.1 and also suggest me ...
0
votes
1answer
25 views

Error with Graphics program using C (Ubuntu 14.04)

Regarding this thread How do I use graphics.h in Ubuntu? , I executed the following program(shown below the block), but the program unfortunately ends automatically after a few seconds with the ...
0
votes
0answers
28 views

Squid cross compile

I've been trying to cross compile the Squid 3.5.7 on ARM Cortex A8 (Linux). I downloaded it from http://www.squid-cache.org/Versions/v3/3.5/ I have arm-linux-gnueabi-gcc and arm-linux-gnueabi-g++. ...
-1
votes
1answer
38 views

GCC compliler causing error of illegal refference for access noxim

I am trying to run access noxim (network simulation too) on my Ubunto 14 and concerning this source. https://github.com/habedi/SystemC-AccessNoxim I am using systemc2.3.1 for this purpose. Now i ...
0
votes
0answers
30 views

Error while loading shared library libz.so.1 while cross compiling for arm-linux

I'm trying to cross compile an opencv app on Ubuntu 14.04 to run on an ARM core. I can compile the open cv app fine on Ubuntu with g++ test.c -o test -I /usr/include/opencv -I /usr/include/opencv2 -L ...
0
votes
2answers
38 views

How to add permanent flags? [closed]

I'm trying to compile my file by using make file.cpp It is doing g++ file.cpp -o file I need to add permanent -std=c++11 to it. Is it possible? How to do it?
0
votes
0answers
17 views

Linker problems with TCL libtiff package

I've been banging my head against the wall for almost a week on this issue, so I thought I'd reach out for help. I am compiling TCL libtiff from source as part of a larger software package. Here is ...
1
vote
1answer
44 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 ...
0
votes
0answers
21 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 ...
6
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?
1
vote
2answers
88 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 ...
0
votes
0answers
17 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 ...
0
votes
1answer
28 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
0answers
56 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
31 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
22 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 ...
0
votes
3answers
198 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
15 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
42 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
172 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
47 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
0answers
72 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
1answer
183 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
0answers
165 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 ...
0
votes
1answer
87 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
157 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
120 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
43 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 ...
0
votes
0answers
108 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 ...
1
vote
1answer
105 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’ ...
0
votes
0answers
30 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
81 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
71 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
57 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, ...
1
vote
0answers
47 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
178 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
59 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
106 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
38 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 ...
3
votes
1answer
36 views

Where should libraries be located for the development process?

With the SDL libraries for example, one would have to point to the headers at the beginning of their code, like so: #include <SDL/SDL.h> And, when compiling with GCC for example the library ...
4
votes
2answers
2k 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 ...
1
vote
1answer
137 views

Altough I installed GSL library, g++ cannot compile my code

In order to use gnu gsl library I've installed it with the following command : sudo apt-get install libgsl0ldbl When I write a simple c++ code just to check whether I installed it correctly or ...
3
votes
1answer
1k views

CXXABI_1.3.8 not found

So, I'm trying to run heroes of newerth and get the error ./hon-x86_64: /home/c0ding/HoN/libs-x86_64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ...
0
votes
0answers
131 views

gcc 4.8.4 in Ubuntu 14.04 (LTS)?

Is it possible to get gcc 4.8.4 on Ubuntu 14.04? Ideally I'd just replace the system 4.8.2 with 4.8.4 rather than the hassle of having a two separate gcc toolchains. I'm curious as to why 14.04 is ...
0
votes
2answers
38 views

What is the extention of output files of gcc operation?

If I do gcc filename.c, I get a.out After performing gcc -o output_name filename.c we get the executable file output_name. What is the extension of this file?
-2
votes
2answers
46 views

Command to list only output files of gcc operation? [closed]

I have a directory with many c programs and some other files. After performing gcc -o output_name filename.c on c files i have respective output files in the same folder. What terminal command and ...