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

1
vote
0answers
83 views

Problems building libmodbus 3.0.6 ubuntu 14.04

I am finding that libmodbus http://libmodbus.org/ is compiling incorrectly on both my laptop and desktop running Ububtu 14.04 both were upgraded from 11.10 some time ago. I have tried using the live ...
1
vote
2answers
135 views

How to get all packages listed in a PPA at once?

For example, if I do: sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-5 g++-5 I get gcc-5 but not gfortran-5 or cpp-5 or any of the other packages ...
1
vote
1answer
91 views

gcc not found while executing shell script

invalid command name "gcc" while executing "gcc rsa.c -o rsa -lm" (file "./run.sh" line 1) does gcc-4.9.2 works correctly on ns-2.35 or is it gcc-4.4
0
votes
0answers
133 views

C++ and regex using gcc 4.9.1

Good day, I'm trying to use regular expressions within my C++ program. The regular expression I use is simple and works as intended when I try it in an online debugger. The code: /* _token = ...
0
votes
0answers
1k views

Configure: error: cannot run C compiled programs. If you meant to cross compile, use '--host'

Following the steps of @Nephente I pass you the error and then the guide I'm using to install de package dependencies and the content of config.log: 1) Error: root@ettus-e300:~/ortp-0.22.0# ...
0
votes
1answer
82 views

g++4.9 -fvtable-verify link error: cannot find vtv_start.o

I am running g++ 4.9.2.0ubuntu1~14.04 (installed from the toolchain ppa: ppa:ubuntu-toolchain-r/test), and I want to use the Virtual Table Verification (VTV) feature (-fvtable-verify in C++ dialect ...
1
vote
2answers
4k views

GCC 5.2 on Ubuntu 15.04

Can someone walk me through getting the latest version of gcc on Ubuntu 15.04? I have tried finding testchains but those only go up to 5.1, I believe. Is this something I need wily for?
0
votes
1answer
54 views

Can't remove gcc on armhf

When I am trying to remove gcc-4.9, it is trying to remove all my root file system. apt-get purge gcc-4.9-base Returns: The following packages will be REMOVED: adduser* apt* apt-utils* ...
0
votes
2answers
70 views

GNU Packages: compiling

Can someone help me about free software from GNU project. I downloaded some packages, in this case coreutils (http://www.gnu.org/software/coreutils/coreutils.html). I then started browsing through ...
0
votes
0answers
112 views

Cross Compiling GMP to ARM

I am a newbie to Cross compilations. I was able to cross compile GCC to ARM but am facing problems while cross compiling GMP. Any tutorial links for compiling GMP to ARM? I have been getting errors as ...
0
votes
1answer
1k views

checking whether the C compiler works… no

I am trying to run ./configure checking for pkg-config... /usr/bin/pkg-config checking for roff2html... no checking for distro... redhat checking pkg-config is at least version 0.9.0... yes checking ...
0
votes
1answer
477 views

Can't install pulseaudio on lubuntu 14.04 (for no sound in skype)

This is not a duplicate, none of the solutions offered here could solve my problem. Basically, what happens is: ***@***:~$ sudo aptitude install pulseaudio [sudo] password for *** : The following ...
0
votes
1answer
117 views

OpenCV-2.4.* seems to be broken under Ubuntu-14.04

If I try to compile a small opencv test program under Ubuntu the linker can't resolve the symbols. The programm is: root@lynx:/root(13)# cat ~rose/Txt/projects/OpenCV/Examples/cv_version.c #include ...
0
votes
0answers
65 views

msp430-gcc compiling error

In a last post problems with path of msp430 gcc I've could solve the problem with the msp430-gcc version... My problem now is that wen I go to contikis folder to compile a simple hello-world ...
0
votes
0answers
74 views

Need an i486 compiler

I'm trying to compile OpenBIOS on Ubuntu 15.04. I ran the following instructions: sudo apt-get install fcode-utils svn co svn://openbios.org/openbios/trunk/openbios-devel OpenBIOS cd OpenBIOS ...
1
vote
1answer
62 views

problems with path of msp430 gcc

Hi everyone I'm trying to modify the path to open msp430-gcc When I use whereis msp430-gcc : msp430-gcc: /usr/bin/msp430-gcc /usr/bin/X11/msp430-gcc /opt/msp430-47/bin/msp430-gcc And what I ...
2
votes
2answers
423 views

Why a single cross compiling doesnt work? Error: bash: ./test1: No such file or directory

I'm using my Ubuntu 14.10 x64 PC to cross compile to run my programs in my Beaglebone Black but I'm getting a strange error when I try to run the compiled program in my BBB. The command lines bellow ...
0
votes
0answers
23 views

Problem with installing older gcc version

I am problems with installing older version of gcc. I am trying to do it for few last days so finally i decided to tell this to you guys. I want to install gcc older than 3.3 i guess. Now i have ...
0
votes
0answers
120 views

Help for create a GTK app using Glade xml file. (version 3 of both)

(scuse my for my english, I'm french) Hy, I'm pretty comfortable with C and I was looking for next level with graphical interface, I try SDL but it's not what I want, I need to create native system ...
1
vote
0answers
222 views

How to install gcc 2.95.3 on ubuntu 14.04 64 bit?

How to install gcc 2.95.3 on ubuntu 14.04 64 bit. I require to do this to compile kernel 2.6.10. Newer versions of gcc do not compile the linux kernel 2.6.10. Thanks in advance.
0
votes
0answers
128 views

Can't compile any C code using CodeBlocks

Upon building a basic C code on Code Blocks, the output is as follows: gcc: error trying to exec 'cc1plus': execvp: No such file or directory Process terminated with status 1 (0 minute(s), 0 ...
-1
votes
1answer
72 views

Error during MediaProxy installation

I am installing mediaproxy on my server debian. Please review the error pasted below. I have also tried installing the dependencies but still this error occurs. Need help on this. ...
0
votes
1answer
586 views

Multiple GCC version problem

I'm having a lot of problems with GCC. First, I tried to install an app (ginga) and I got a GCC depends issue. The depend is about have an gcc version, but the application needs other one. I installed ...
0
votes
1answer
172 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
279 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
28 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
150 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
113 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
165 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
1answer
255 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
86 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
73 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
213 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
285 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 ...
7
votes
2answers
6k 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
316 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
49 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
108 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
110 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
98 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
60 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
4answers
16k 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
131 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
189 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
196 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
66 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
129 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
589 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 : ...
2
votes
0answers
1k 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
586 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?