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

Compiling Mame 0.170 on Ubuntu 15.10

when trying to compile mame 0.170 I get the following error: m1xalis@m1xalis-HP-Compaq-6830s:~$ cd .mame m1xalis@m1xalis-HP-Compaq-6830s:~/.mame$ make GCC 5.2.1 detected Compiling ...
0
votes
0answers
26 views

which gcc version

I have ubuntu 14.04 and I want to install a program that asks enter code here me this What is your C++ compiler? [] so I am wonder how to answer and I used this command to know my version gcc -v ...
0
votes
0answers
15 views

How can I redirect my system to /usr/include/x86_64-linux-gnu/sys [on hold]

I'm compiling some software - RTEMS to be more specific -with "make all" command and the compilation fails saying ../../../../cpukit/../../../erc32/lib/include/rpc/svc.h:46:37: fatal error: ...
-1
votes
0answers
18 views

opencores installation

I am trying to install opencores kernel onto my Linux operating system; while I was installing the GNU tool chain at binutils from this link, I have tried to use the make command, which has worked ...
0
votes
0answers
10 views

Install older GNU toolchain

I need to compile my project using older version of GLIBC (GLIBC 2.15). For this reason I decided to install separate machine with older toolkit. Usually I do sudo apt-get -y install g++ But how I ...
0
votes
1answer
12 views

Linking IDE with right compiler for ARM cross compiling

I have installed Eclipse as IDE and gcc-4.7-arm-linux-gnueabihf: sudo apt-get install gcc-4.7-arm-linux-gnueabihf to be able to develop code for ARM and cross compile it on my Ubuntu. But I don't ...
2
votes
2answers
68 views

sudo apt-get install libstdc++

When i try to install libstdc++ using: sudo apt-get install libstdc++ I am getting the below error in ubuntu. Do you have any idea about it? The following packages have unmet dependencies: ...
0
votes
1answer
56 views

VMWare Player not working with Linux kernel 4.2.5

I m using Ubuntu Desktop 14.0.4. Due to some reasons I need to upgrade to kernel 4.2.5. But after that VMWare Player(i believe version 12.x 64 bit linux) is not working. At the time of start up it is ...
0
votes
0answers
93 views

Downgrade GCC from 5.2.1 to 4.9 Ubuntu 15.10

Because of program compatibility issues I need to downgrade GCC to at least 4.9 How do I do this? Thanks. EDIT: The program is Blender and am trying to do GPU rendering. The specific error the ...
3
votes
1answer
53 views

GCC --disable-nls, --enable-languages, --without-headers Unrecognized

I'm trying to make a bash script that will install a gcc cross-compiler for i686-elf on a Debian computer, but I keep getting the same error: configure: creating ./config.status config.status: ...
2
votes
1answer
19 views

Installed headers don't exist according to GCC

I want to compile Pike with the GTK library. To do this, I need the gtk headers installed. $ tee test.cpp test.c #include<gtk/gtk.h> #include<gtk/gtk.h> $ g++ test.cpp; gcc test.c ...
-1
votes
1answer
77 views

how to install gcc [duplicate]

Issue with install, searched gnu.org - unfortunately manual is more than 810 pages thick without instruct for install; https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gcc.pdf Plus manual pages in ubuntu is ...
-1
votes
1answer
16 views

Undefined reference to 'CRYPT_NUM_LOCK'

I am new to ubuntu and currently i am using 12.04 version of ubuntu. i am trying to compile a program using openssl libraries using gcc compiler. But it is giving errors: Undefined reference to ...
0
votes
1answer
68 views

Not able to install VLC program from .tar.xz file

I successfully uncompressed the .tar.xz file and then I also ran the ./configure command and I think it also worked. But the problem comes when I try to execute make command. The given INSTALL file ...
0
votes
0answers
18 views

I need help with an error I keep getting while trying to install MIT's scheme with Ubuntu 14.04

So I run the top command and all goes well until I get the error message at the end, and then I try to compile the microcode and I just can't get it to work. Any help would be greatly appreciated. ...
0
votes
0answers
25 views

Error while compiling F77 program

I tried to compile one of my Fortran program (f77 -o file file.f) and end up with an error. /usr/lib/gcc/i686-linux-gnu/4.8/../../../../lib/libf2c.so: undefined reference to `MAIN__' collect2: ...
0
votes
0answers
24 views

I want to edit gcc compiler code to print hostname with a message at compile time. how can I do that?

I've downloaded the gcc source code, I don't know what all files to edit in order to print the hostname along with a message at the compile time.
0
votes
0answers
25 views

Ubuntu Touch compile error

I'm having a few errors building the Touch images. Haven't found an answer to this yet. I've posted below the error during compiling the Ubuntu Touch source. Any help would be greatly appreciated as ...
0
votes
0answers
33 views

How to install ubuntu packages offline from installation CD

I have a server with no internet access. I am trying to install the build-essential package on the server offline. I read on the internet that some packages should be installed from the CD. using ...
0
votes
1answer
50 views

error trying to exec 'cc1': execvp: No such file or directory (possible SAGE/python issue)

I see that there are a number of topics on this error message, but I've tried every solution I have found to no avail. This is my first question here, but I'm going to try and include all of the info ...
0
votes
0answers
11 views

Unknown Psudo-op '.p2ali' error while building LibreOffice

I'm trying to build LO first time, and my build is failing with error 'unknown psudo-op '.p2ali' Ubuntu 15.10 / GCC version 5.2.1 20151010 How to solve this problem? Thank you in advance!
0
votes
1answer
90 views

How to use gcc 4.9 when it's installed in same directory as newer gcc

I've got installed both gcc 5 and gcc 4.9 in same directory (/usr/bin). Using nvcc with --compiler-bindir is impossible since both gccs are in same directory. I need to run command nvcc ...
1
vote
0answers
20 views

how to configure: error: C compiler cannot create executables [duplicate]

I'm installing Gawk-3.1.3 and used ./configure --prefix=/usr --libexecdir=/usr/lib and the output was this or this checking for a BSD-compatible install... ./install-sh -c checking whether build ...
0
votes
1answer
15 views

How to install flexlay editor

I have got problem with installing program named flexlay editor. when I type ./configure there not making makefile. message from configure shell script: checking for a BSD-compatible install... ...
0
votes
1answer
32 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
23 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: ...
0
votes
0answers
8 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
159 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
12 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
44 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 ( ...
0
votes
1answer
274 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
35 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
377 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
20 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
136 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
86 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 # ...
0
votes
1answer
137 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
82 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
45 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 ...
1
vote
0answers
234 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 ...
0
votes
0answers
110 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
52 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
113 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
64 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
82 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
803 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
62 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
3k 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
36 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* ...