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

I am facing a problem while running a 'C' graphics program in gcc compiler [on hold]

My program doesn't exeute properly. when i run a program containing graphics header file then i get an error message as given below. Please help me resolve the following error: [xcb] Unknown sequence ...
1
vote
1answer
5k 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 ...
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 ...
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
12 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 ...
40
votes
7answers
95k views

Getting + installing gcc/g++ 4.9 on Ubuntu?

How do I install the latest version of gcc and g++? I am using a variety of C++11 and C++1y features; which is why I need this.
0
votes
1answer
286 views

Raspberry Pi C++11 std::thread: pure virtual method called

Ubuntu 14.04. I've installed gcc-arm-linux-gnueabihf, g++-arm-linux-gnueabihf (tried 4.8 and 4.9 from utopic). Code that uses std::thread: #include <iostream> #include <chrono> #include ...
0
votes
0answers
9 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 ...
3
votes
4answers
11k views

Can't compile program that uses SDL after upgrade to 11.10 - undefined reference to SDL_Init

I've just upgraded from 11.4 to 11.10 and at least one thing seems to be broken: I have a C++ program that is using SDL and OpenGL. I was able to compile and run it just fine before the upgrade. Now I ...
0
votes
1answer
26 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 ...
18
votes
4answers
43k views

How to update gcc to the latest version(in this case 4.7) in Ubuntu 10.04?

I have Ubuntu 10.04 32-bit with gcc 4.4.3 currently installed on it. I want to upgrade it to gcc/g++ 4.7 (I am looking for C++ 0x support) How to update using Ubuntu Package Manager: apt-get ...
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 ...
2
votes
1answer
280 views

U-boot build fails - cannot find lgcc / libgcc.a

I am using Ubuntu 12.04 LTS 64 bit and trying to create a Linux Image for the SAMA5D36-EK. In doing so I need the mkimage command. According to website www.at91.com/linux4sam/bin/view/LinuxSAM/U-Boot ...
0
votes
0answers
34 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 ...
6
votes
1answer
6k 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
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
1answer
6k 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
18 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
46 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?
0
votes
2answers
506 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 ...
1
vote
2answers
89 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
18 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
1k 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
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
1answer
184 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
680 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
140 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
57 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
32 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
23 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
202 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
43 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
0answers
109 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
168 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
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 ...
0
votes
1answer
94 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
158 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
128 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 ...
1
vote
1answer
107 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’ ...