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
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
0answers
14 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
41 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
29 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 ...
0
votes
1answer
130 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 ...
1
vote
1answer
27 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
58 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
votes
0answers
18 views

I am trying to create a library in C [closed]

I have the following code for calculating exp(x). This is an inbuilt function in math.h library. Following code is in a file exponent.c. This code is compiled into a static library called libctest.a ...
1
vote
1answer
76 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
49 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
27 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 ...
18
votes
5answers
61k views

GLIBCXX_3.4.20 not found, how to fix this error?

Whey I try to run the program Layout Editor (available on this site) on Ubuntu 14.04.1 64-bit LTS I get the following output in the terminal: $ layout layout: /usr/lib/x86_64-linux-gnu/libstdc++.so.6:...
4
votes
2answers
6k views

unable to install gcc-multilib after upgrading to 14.04

I recently upgraded from 12.04 to 14.04. After upgrading things started to break. I am getting crt1.o: No such file: No such file or directory. So, I tried to install gcc-multilib, but, that is also ...
3
votes
2answers
247 views

PPA removed and purged but still showing available upgrades

This is on Ubuntu 14.04 (SERVER, so no GUI) Ok so earlier today I was asked to upgrade GCC to GCC 4.9 (current available is GCC 4.8 for Trusty). So following these directions I installed the PPA ...
0
votes
1answer
33 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
0answers
32 views

finding a C/C++ library package [closed]

My gcc compiler does not find libraries for wchar and respective functions (such as wcslen()). Who can suggest me what package should I install? (The last thing that I tried to install was libboost-...
0
votes
2answers
50 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
28 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
3answers
4k views

cmath: No such file or directory #include <cmath>

I downloaded and try to installed the package "wfconvert" from this link http://qmcpack.cmscc.org/tutorials/bulk-solid. but I got some error. here what I did: copy the wfconvert folder in root "/" ...
4
votes
1answer
4k views

collect2: error: ld returned 1 exit status

I want to install nexalign (can be downloaded from here) on ubuntu 13.10. I previously installed it on ubuntu 10 without any problem. The error I got is: gcc -O9 -Wall -Dthread -lpthread main.o ...
0
votes
1answer
106 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
1answer
101 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
228 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 ...
39
votes
3answers
101k views

How do I use the latest GCC on Ubuntu?

I want to compile my program with the latest version of gcc. Ubuntu 14.04 comes with gcc 4.8.2, however there's 4.9.0 available, moreover, I see that it is available as a package: gcc-4.9. I tried to ...
0
votes
0answers
40 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
465 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
462 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
44 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
9k 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 (arm-...
1
vote
0answers
45 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 ...
3
votes
1answer
6k views

CXXABI_1.3.8 not found

So, I'm trying to run heroes of newerth and get the error ./hon-x86_64: /home/c0ding/HoN/libs-x86_64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libicuuc....
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 ...
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 ...
1
vote
1answer
235 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
4answers
15k views

How do you fix a gcc compile 127 error? sudo apt-get install g++ doesn't work

*emphasized text*when I try to run a program I get the following error. ubuntu@ubuntu-VirtualBox:~/Desktop$ make g++ -Wall -Wno-switch -I. -g -c -o pass.o pass.cpp make: g++: Command not found make:...
0
votes
2answers
44 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
77 views

gcc did not create cxxmain.c in steps of installing simplescalar

i am trying to install simplescalar on ubuntu. i do all the steps of installing it correctly but in the last step (installing gcc compiler) i face to a problem. make LANGUAGES="c c++" CFLAGS="-O" ...
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 ...
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
45 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 ...
0
votes
0answers
40 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
36 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 ...