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

3
votes
0answers
28 views

compile can't find GL lib

bjorn@bjorn-031:~/samples/SOP$ gcc -lGL /usr/bin/ld: cannot find -lGL I've installed libglu1-mesa-dev and rebooted. I'm using Nvidia drivers. This output look strange to me though: ldconfig -v .....
1
vote
1answer
23 views

Where to find core dumps from gcc and g++ compiled code?

I compiled some C code, once with gcc, and then with g++, so I got two output executable files. When executing both files I found that it told me: Segmentation fault (core dumped) But there is no ...
-1
votes
0answers
16 views

install mrtg-2.17.4 ploblem?

I'm install mrtg-2.17.4 on Ubuntu 14.04 follow http://oss.oetiker.ch/mrtg/doc/mrtg.en.html ,but can't install how should i do ,help? Thanks. ~/Downloads/mrtg-2.17.4$ ./configure --with-gd=/...
0
votes
1answer
27 views

Gcc 5.3.1 vs ANSI C re: Variable names and $ [on hold]

I have read online and in print (the ANSI C book by Kochan) that one cannot use the dollar sign $ in a variable name when programming in C. Yet, when I created the following code to test variable ...
0
votes
1answer
46 views

Installing 3rd party C library. Several errors I've had before whose fixes aren't the solution this time

I am attempting to use a third-party C library. Once I'm in the directory for the unpacked file I run ./configure and get: configure: creating ./config.status config.status: creating tests/Makefile ...
-1
votes
0answers
30 views

NPM dpkg install errors

I want to install appium in Ubuntu, but if I install anything npm related, I get the below errors. For instance, if I run: leo@leo:~$ sudo apt-get install gcc I get: dpkg: warning: files list ...
1
vote
1answer
29 views

How update GCC 4.8.4 -> 4.9

Idk why, i cant update my gcc root@server:~# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper Target: x86_64-linux-gnu Configured with: .....
1
vote
1answer
68 views

How to install gcc-4.4 on Ubuntu 16.04 [duplicate]

I'm gonna compile Rodinia benchmark on Gem5-gpu simulator, when I make it complains for gcc-4.4 and give me following error: make gem5-fusion make -f Makefile.gem5-fusion make[1]: Entering directory '...
1
vote
1answer
89 views

Ubuntu 16.04, gcc 4.9, CUDA 7.5.18, includes gcc5 headers

I'm running on a Ubuntu 16.04 where I installed gcc4.9 and NVIDA drivers from official repositories, configured alternatives for gcc, and installed the CUDA toolkit 7.5.18. When I try to compile a ...
-1
votes
2answers
51 views

What is the meaning of gcc command

I wonder what does the command gcc -o sample sample.c really means and what it does in the system. I know gcc is the command to invoke gcc compiler, but what does -o and filename(without extension) ...
1
vote
0answers
28 views

Can't figure out Cmake [closed]

I don't have much experience with Cmake and setting environment variables/paramaters, mainly because I've never needed to, things usually compile themselves. I'm trying to install heimdall. And i'm ...
3
votes
1answer
25 views

Compiling a 32 application on 64 bit, without getting rid of GNU EABI for ARM

I want to build a C++ program for 32 bit on my 64 bit 16.04. /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5/libstdc++.so when searching for -lstdc++ /usr/bin/ld: skipping ...
0
votes
1answer
35 views

How to install gcc4.4.7 in the ubuntu15.10?

I had try to install gcc4.4 and g++4.4 but will print out "E: Package 'gcc-4.4' has no installation candidate E: Package 'g++-4.4' has no installation candidate" in the ubuntu15.10?
0
votes
2answers
52 views

How to force gcc & ld (make wholly) use less memory?

I have to compile a computer generated source with my sources which is too huge and I've no control over it. Since my memory is not much, I've to force make use less memory. Otherwise, it gets killed ...
1
vote
0answers
29 views

Ubuntu 12.04 LTS - Upgrade to a specific version of previously available GCC version

I've added the ppa:ubuntu-toolchain-r/test repo for getting the latest GCC-5 version but I had the unfortunate surprise that the available version for 12.04 LTS changed a few days ago from 5.3 to 5.4. ...
0
votes
1answer
104 views

gcc-5: internal compiler error: Bus error (program as)

I'm trying to install Python 2.7.11 on my Ubuntu 14.04 LTS vServer (hosted at strato), because it's a requirement for letsencrypt. I'm using this tutorial, basically just replacing 2.7.9 with 2.7.11. ...
6
votes
2answers
245 views

How can i Update gcc 5.3 to 6.1? [duplicate]

After installing Ubuntu 16.04 LTS, I found that gcc 5.3 installed by default but I don't receive any updates to gcc. I opened up GCC website and I found the new release 6.1. How do I update? Output ...
0
votes
1answer
135 views

Unable to install or upgrade after an upgrade to 16.04 with gcc-doc error [duplicate]

I'm kind of new to Ubuntu. A couple of days ago, I upgraded to 16.04 from 14.04. After the upgrade, I can neither install new software nor upgrade OS. When I enter sudo apt-get upgrade I get this ...
0
votes
0answers
44 views

Error on compile CyanogenMod

I need help. After running make mrproper I can't build CM source in Ubuntu 14.04. It's throwing this error: build/core/tasks/kernel.mk:149: *********************************************************...
0
votes
0answers
12 views

problem during execution multi2sim simulator

I have installed multi2sim-5.0 simulator on ubuntu 14.04 for project work. When I execute "hello world" program, display it, but when use this command m2s --x86-debug-syscalls stdout hello gives error ...
-1
votes
1answer
29 views

Error in execution of multi2sim simulator [closed]

cust@cust:~$ cd ~/Desktop/multi2sim-5.0 cust@cust:~/Desktop/multi2sim-5.0$ g++ matx.cpp -o matx cust@cust:~/Desktop/multi2sim-5.0$ ./matx Enter the order of matrix (must be n*n) 1 * 1 ...
-1
votes
2answers
506 views

How to install gcc 4.1.2 on Ubuntu 16.04 ?

How can I install the old version of gcc (gcc-4.1.2) on Ubuntu? ( without Synaptic ) .My actual version of gcc is gcc-4.4.7
1
vote
1answer
501 views

How do I install gcc 6 (latest 6.1?) on Ubuntu 14.04 LTS, make c++14 the default and will my libraries work? [duplicate]

How do I install gcc 6 (latest 6.1?) on Ubuntu 14.04 LTS, make c++14 the default and will my libraries work? Also, what problems can I expect if any? Lastly, please walk me through this because i am ...
1
vote
1answer
45 views

Dependency issue: gcc-4.9-base being kept back

I'm unable to upgrade my system because of broken packages. I've been unable to solve this problem for some months now, and frankly, I'm on the verge of doing a complete reinstall of ubuntu. This ...
0
votes
1answer
119 views

Vmware Workstation 12 Install Problem

Having a tough time here. I have installed kernel 4.6 for my machine and using gcc 6.1.1 - so vmware workstation 12 installs fine but will not run. Does not find compatible gcc version 5.3.1 So ...
0
votes
0answers
31 views

too many errors while executing dpkg --configure -a

I am not an expert in Ubuntu. I use Ubuntu for my work purposes only. I was trying to upgrade my Ubuntu from 15.04 to 15.10 and while doing lots of dpkg error occurred. Then I restarted the computer ...
0
votes
1answer
17 views

“bash: ./cents: no such file exist or directory” while trying to run a program that has already been compiled

Can someone explain to me why this happens? It compiles the program fine but it wont let me run it. I'm on ubuntu 16.04 Bonus question: How can I run the math library on Geany? I love the interface ...
1
vote
1answer
246 views

Upgrading GCC from 4.8 to 4.9

I am trying to install the TrinityCore on my server. When upgrading the GCC to use CMake I ran into a problem: Here is the response I got: gcc-4.9 is already the newest version. 0 upgraded, 0 newly ...
1
vote
1answer
31 views

How to add qt qmake version 4.8 to qt creator?

I have Qt creator 5.4.1.I have qmake 5.4.1 but I wan to add qmake 4.8 for desktop version.How could I do? I install gcc4.8,but I don't know Is qmake install?(if it installed so where was it?) root@...
1
vote
0answers
47 views

'make' error - glib.h no such file or directory on Raspberry Pi

I am trying to compile an Example but I am getting following errors/issues. I am not sure where the config file and make file is for this package and I don't want to make changes that wipe out ...
0
votes
2answers
46 views

How do I install a specific lower minor version of gcc using package manager?

I am running an Ubuntu 14.04-4 64bit. gcc --version returns (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4 Yet, I need version 4.8.2-10. What I tried: I found the specific gcc version in a debian snapshot ...
0
votes
0answers
18 views

How can I install a subversion of gcc using a .deb file

Actually I have gcc version 4.8.4-2ubuntu1~14.04.3 installed on my PC. Now I need to install gcc version 4.8.2-10ubuntu1 instead. Everytime I try to install the other version, the compilation ...
0
votes
0answers
50 views

Can't install package: dependends on gcc-4.8-base 14.04.01

I'm trying to install all the dependencies to run ASP.Net Core applications on a linux system. I basically have no experience with linux or the linux platform. I found a tutorial explaining the ...
1
vote
0answers
61 views

Hash Sum mismatch for cpp/gcc in ubuntu 16.04 LTS [duplicate]

I was trying to install cpp/gcc package in Ubuntu 16.04 LTS but getting error code - "Hash Sum mismatch" So far I have used different archive like - archive.ubuntu.com, us.archive.ubuntu.com and bd....
0
votes
0answers
41 views

Nvidia/Cuda driver for kernel 4.4 (Ubuntu 14.04)

I'm having trouble getting cuda and nvidia to work with the 4.4 kernel in Ubuntu 14.04. What cuda version can actually be installed? When trying cuda 7.5, it complains about the nvidia driver. When ...
1
vote
0answers
28 views

“evilmake all” not working…please help

I am trying to insatll idlutilis, When I am doing : $ evilmake all i get error: nrutil.h:45:12: warning: ‘iminarg1’ defined but not used [-Wunused-variable] static int iminarg1,iminarg2; ...
0
votes
1answer
32 views

How do I install gcc from Kubuntu USB [duplicate]

My laptop has a slightly obscure wifi card and I can't install a driver from the driver management or the USB, and I don't have ethernet. Instead, I found a driver online and it worked on a Live USB ...
0
votes
1answer
38 views

How should I handle ABI incompatability between gcc-4.9 and gcc-5?

I have recently upgraded my dev machine to Ubuntu 16.04 (fresh install, wiped 14.04) The default version of gcc is gcc-5.3.1. A problem that I have is a vendor supplied library is only built using ...
0
votes
0answers
17 views

Installing gcc 4.3 on ubuntu 15.10

I want gcc 4.3 for my application and I'm using ubuntu 15.10 for same I have removed my current version of gcc i.e. 5.2 now I'm trying to install gcc-4.3, its showing this error: Package gcc-4.3 is ...
0
votes
1answer
39 views

How to connect via ssh and use gcc on target?

I would like to do two things automatically within a bash script: Connect via ssh to my target. Execute gcc. My script looks like this: ( echo "cd myfolder" echo "gcc -o mybin ...
0
votes
0answers
32 views

I happen to destroy WIFI driver when upgrading gcc-4.8 to gcc-5.3

I am working on Ubuntu 14.04.03 Trusty Tahr. As we know, the default GCC package version for this release is 4.8.2, but recently I upgraded it to GCC 5.3 (the latest version) following this answer: ...
0
votes
0answers
14 views

including libarry paths in GCC

This is how I write commands to compile my mruby-c code: $ gcc -Imruby-mruby-ea03352/include main.c /home/mruby/Documents/mruby-mruby-ea03352/build/host/lib/libmruby.a -lm -o main.out Actually ...
0
votes
1answer
64 views

std::thread run time error “Enable multithreading to use std::thread: Operation not permitted”

I am trying to port a program that was running without any problem when the environment set up was Ubuntu 12.0 QTCreator Version - 2.4.1 QT - 4.8.0 gcc - 4.6.3 to a new environment Ubuntu 14.04 ...
0
votes
2answers
39 views

gcc doesn't do anything when trying to compile a code [duplicate]

I'm new using Ubuntu OS, I've Ubuntu 12.04 and I'm trying to run a simple Hello world C program #include <stdio.h> int main(){ printf("Hello world!"); return 0; } When using gcc --version ...
0
votes
0answers
64 views

../libtool: line 1158: g++: command not found

I have problems during the make gcc 5.3.0. I use gcc 4.8 on Xubuntu 14.04 LTS. gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see ...
0
votes
0answers
43 views

compiling gcc-g++ 4.6.0 alongside gcc 5.2.1 on ubuntu 15.10 amd64

I'm trying to compile gcc 4.6.0 alongside gcc 5.2.1 on Ubuntu 15.10, with OS 64bit. I followed the instructions here and here. For the source I use gcc-4.6.0.tar.bz2. I installed all prerequisites and ...
0
votes
0answers
61 views

I was trying to install fast downward planner in 64-bit ubuntu-14.04 but its telling me gcc is broken .I have reinstalled gcc but it did not work out

Building configuration release32 -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler:...
1
vote
0answers
819 views

Installing GCC 6.0 in Ubuntu Linux 14.04 LTS

I want the latest version of GCC, namely the GCC 6.0, for running a software. The linux version installed is 14.04 LTS. Every time I am trying to upgrade the GCC version I am ending up installing the ...
0
votes
2answers
30 views

Problem to compile python and C++ code using ubuntu Ubuntu 12.04.5 LTS: problem with gcc

I am trying to compile a code involving python and C++ in Ubuntu 12.04.5 LTS and I have this type of error hammouc@kw13921:~/Documents/mimclib$ make python setup.py clean running clean removing '...
0
votes
1answer
34 views

GCC won't compile to an executable file

I was able to reproduce this issue with a simple case (shown below). The problem in particular is that the output of compiling my main C file is a file with format data (returned by running file on ...