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

14.04.01 32-bit: Missing g++ 64-bit include files when cross-compiling

So, I've got 32-bit Xubuntu 14.04.1 installed. We have some interface code where we intend to release SOs for the various platforms we support, and Windows DLLs. (Yes I know, binary release bad, but ...
0
votes
0answers
33 views

configure: error: C compiler cannot create executables: wxPython 3.0.2.0

Trying to install wxPython 3.0.2.0 When trying to build wxPython, I get a compilation error of: configure: error: C compiler cannot create executables I'm following the steps from this page: http:/...
0
votes
0answers
13 views

Ubuntu-keyboard, : error: cannot find -lubuntu_application_api

I branched the ubuntu-keyboard from launchpad, made some changes to the layout of the icelandic key-board but when I try to build it I get the following error: g++ -m64 -Wl,-O1 -Wl,--as-needed -...
1
vote
1answer
504 views

Exec format error of gcc-compiled Hello World c++

I know there are many similar questions with this error message here. But I cannot find any solution yet. On AWS ubuntu server, I wrote c++ Hello, World program #include <iostream> using ...
0
votes
0answers
21 views

Mingw32 with gcc 4.8+

I'm working on crossbuildable project that needs mingw32 in order to be compiled for win32 under Linux. I used default mingw32 from ubuntu repositories and that's was OK. But now I need to compile ...
1
vote
1answer
145 views

Multiple versions of gcc / g++ affects

I have a fairly simple question, and yet couldn't find an answer anywhere I looked. In my workplace there is a CI server with ubuntu 12.04 installed, that server uses the default c/c++ binaries ( 4.6....
0
votes
1answer
1k views

C++ 'Hello World' with Codelite-iostream not found

I appreciate any help with this, as I am relatively new to both Linux and coding in general. I am comfortable using bash commands and have been playing with Linux for a little over a year, but please ...
0
votes
2answers
43 views

How to I get GCC compiler to work? [closed]

So I am new to programming C. I am using Vim as my editor and GCC as my compiler, but its not working quite right. Lets say I am making a basic program to determine if a number is odd or even. Here is ...
1
vote
3answers
419 views

How to install a stand-alone program

If I create the following program in C: #include <stdio.h> int main(){ printf("Hello World"); } And then compile it like so: gcc helloworld.c -o helloworld Is there any easy way to ...
0
votes
0answers
25 views

How do I build a wxWidgets application with gcc?

How do I build a wxWidgets application (e.g. test.cpp) with gcc on a Ubuntu 14.04.3? Should gcc find the header-files automaticly by itself if wxWidgets is setuped correctly? Or do I ever have to ...
1
vote
1answer
216 views

How to deinstall gcc-5-base

I have somehow installed gcc-5-base and now I am unable to deinstall it: sudo apt-get remove gcc-5-base Reading package lists... Done Building dependency tree Reading state information... ...
0
votes
1answer
341 views

How to compile c++ to Dll file in Ubuntu

Now I can compile successfully by using make file provided, now I want to compile the project to dll file, how should I modify the make file? The make file is: default: all # -----------------------...
1
vote
1answer
348 views

Install gcc/g++ on Ubuntu Phone

My back is so sore and it hurts to sit. However, I need to do my coding assignment. Will it be possible to install gcc/g++ on my Ubuntu Phone and compile my code on it? I tried running sudo apt-get ...
1
vote
0answers
121 views

apt-get upgrade fail for Unmet dependencies after gcc compile

On my headless Ubuntu 14.04.3, I need to use the last release of gcc compiler (version 5.2.0), so I recompiled locally gcc downloading source an doing a checkinstall ( thanks to helpfull answer here: ...
0
votes
0answers
30 views
0
votes
0answers
70 views

Compile ATK for arm comes with errors,S.O.S

When I am try to cross compile atk for arm on ubuntu,error happened.I have tested on atk 1.2.4 , atk 1.3.1 and atk 1.26,The error was same,so I think there would be some "problems" on my computer,...
1
vote
0answers
358 views

Can't install gcc-4.9-base:i386 on Ubuntu 14.04

I've been running into some problems while trying to install wine and steam on Ubuntu 14.04, and they all seem to stem from the gcc-4.9-base:i386 package. When I run sudo apt-get install gcc-4.9-base:...
0
votes
0answers
175 views

undefined reference to `__aeabi_read_tp' while compiling glibc2.15 for arm-linux

CC=arm-linux-gnueabi-gcc ../glibc-2.15/configure --host=arm-linux-gnueabi --prefix=/mnt/us/hunter/glibc --without-tls --enable-kernel=2.6.26 --enable-add-ons=nptl,ports CFLAGS="-O2 -U_FORTIFY_SOURCE -...
1
vote
0answers
90 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
137 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
105 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
142 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 = "WIDTH"...
0
votes
0answers
2k 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
91 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
55 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* base-...
0
votes
2answers
78 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
117 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
525 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
132 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
68 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 example....
0
votes
0answers
77 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 config/...
1
vote
1answer
67 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
457 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 4.8.4....
0
votes
0answers
126 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
237 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
132 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 second(...
-1
votes
1answer
85 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. root@server:/usr/...
0
votes
1answer
637 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
184 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
302 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
167 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
114 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
167 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
276 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
94 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
80 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 ...