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
0answers
11 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
0answers
13 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 : http://i.stack.imgurl/ySaYi.png tried to push ...
0
votes
0answers
10 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
13 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?
0
votes
2answers
72 views

shall i need to install g++ to compile c++ files in Ubuntu 14.04.1

I am using Ubuntu 14.04.1 I want to know, Do I need to install g++ from the Ubuntu Software Center to compile the c++ files? Is GCC(GNU Compiler Collection) able to accomplish this instead? if the ...
1
vote
1answer
23 views

Use g++-4.8 with Qt

I am trying to compile a Qt project that uses the "override" keyword, and thus needs GCC 4.8. I have installed GCC 4.8 on my Ubuntu 12.04 machine already, and it lives in /usr/bin as gcc-4.8 and ...
0
votes
2answers
30 views

gcc fails to compile

I'm a newbee but adventuresome. I'm tri-booting Windows, Fedora, and Ubuntu 14.04 LTS (all 64). Learning but not using dpkg, apt, and apt-get. Starting to study C++ using Ubuntu (the only one with gcc ...
0
votes
0answers
33 views

vlc can't compile

OS: (Ubuntu 14.04 32bit) linux ubuntu 3.13.0-32 generic 2014 i686 NDK: android-ndk-r10e JDK: adt-bundle-linux-x86-20140702 32bit java-version : java version "1.7.0-79" OpenJDK runtime Environment ...
1
vote
1answer
57 views

Why am I getting this undefined reference error while trying to build a c++ project? [closed]

To fix another debug error, I added -std=c++11 to the build command. Now I'm getting a ton of "undefined reference errors like this one: In function encrypt(std::string&, int)': ...
1
vote
0answers
33 views

bug in ncurses.h? [closed]

I have been trying to compile a program I have written in C. I notice that there is an error in compiling saying: clock.c: In function ‘main’: clock.c:22:2: warning: passing argument 2 of ‘wgetnstr’ ...
0
votes
0answers
21 views

libgpg-error throws gcc fatal error

Attempting to install some GnuPG packages on Ubuntu 12.04 When attempting to install libgpg-error, I am getting a gcc fatal error. Here are the commands I am running (in the libgpg-error directory) ...
0
votes
1answer
38 views

Compile error, g++ and c++11 [closed]

Im trying to compile this code via g++, #include <iostream> #include <set> using namespace std; std::set<int> s; int main(){ for(int i=0;i<10;i++) s.insert(i); for(auto ...
0
votes
2answers
51 views

I screwed up my system no commands work at all

Command 'make' is available in '/usr/bin/make' The command could not be located because '/usr/bin' is not included in the PATH environment variable. make: command not found It happened after I did ...
0
votes
0answers
26 views

Make Error while building LDV for ubuntu 14.04

I am trying to build LDV project by following this.While running make console-tools , i am getting the following error. In file included from ../../aspectator/gcc/lto-streamer.h:27:0, ...
1
vote
0answers
30 views

Could not able to compile with /opt/ELDK42/usr/bin/ppc-linux-g++

here is my test.cpp #include<iostream> using namespace std; int main() { cout<<"hello world"; return 0; } $ /opt/ELDK42/usr/bin/ppc-linux-g++ test.cpp ...
1
vote
0answers
83 views

Python app crash after sending command “GPIO.setup( 7, GPIO.OUT)”?

Python app crash after sending command "GPIO.setup( 7, GPIO.OUT)" !!! Action step: pi@rp:~$ python3 Python 3.4.3 (default, Mar 26 2015, 23:09:09) [GCC 4.9.2] on linux Type "help", "copyright", ...
1
vote
2answers
42 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
38 views

how to read gcc input from external file

I'm trying to read the input for a c++ file y.cpp from the file file.in and save the result in file.out but I can't figure how to do it. for example, if the following code was in y.cpp ...
0
votes
0answers
37 views

Error in Installation of Qt5.x 32 bit on Ubuntu 12.04 64 bit

I want to install Qt5.x on Ubuntu 12.04 64 bit. But while installation I faced the problem of libsm6 missing. I learned Ubuntu needs 32 bit libraries for functioning. I followed this link and tried to ...
0
votes
0answers
15 views

Unable to run cudaminer on jetson

After downloading and running ./autogen.sh and ./configure execution of the make command gives the following error on my Jetson TK1 gcc -std=gnu99 -DHAVE_CONFIG_H -I. -msse2 -fopenmp -pthread ...
3
votes
1answer
30 views

Where should libraries be located for the development process?

With the SDL libraries for example, one would have to point to the headers at the beginning of their code, like so: #include <SDL/SDL.h> And, when compiling with GCC for example the library ...
4
votes
2answers
649 views

How to install g++ 5.1 on Ubuntu desktop 15.04 64-bit?

I'd like to experiment with the new GCC 5.1 C++ compiler on Ubuntu. So, I downloaded and installed Linux Ubuntu desktop 15.04 64-bit in a virtual machine. Then, in the terminal, I entered the ...
1
vote
1answer
51 views

Altough I installed GSL library, g++ cannot compile my code

In order to use gnu gsl library I've installed it with the following command : sudo apt-get install libgsl0ldbl When I write a simple c++ code just to check whether I installed it correctly or ...
3
votes
1answer
485 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 ...
0
votes
0answers
53 views

gcc 4.8.4 in Ubuntu 14.04 (LTS)?

Is it possible to get gcc 4.8.4 on Ubuntu 14.04? Ideally I'd just replace the system 4.8.2 with 4.8.4 rather than the hassle of having a two separate gcc toolchains. I'm curious as to why 14.04 is ...
0
votes
2answers
30 views

What is the extention of output files of gcc operation?

If I do gcc filename.c, I get a.out After performing gcc -o output_name filename.c we get the executable file output_name. What is the extension of this file?
-2
votes
2answers
42 views

Command to list only output files of gcc operation? [closed]

I have a directory with many c programs and some other files. After performing gcc -o output_name filename.c on c files i have respective output files in the same folder. What terminal command and ...
0
votes
0answers
32 views

Simple Scalar Ubuntu installation problem

I have followed all the instructions for simple scalar installation on ubuntu and in the stage where I run this command: make LANGUAGES="c c++" CFLAGS="-O" CC="gcc" I get this error: echo "__foo ...
1
vote
1answer
60 views

mps430-gcc .run file not doing any thing

I am using ubuntu 14.04 64 bit on virtualbox on Windows 8.1 64 bit host. I have to build some project and the project uses cmake system. I need to cross compile my project for Texas Instruments ...
0
votes
0answers
28 views

How to install gcc? [duplicate]

I tried to install gcc, but couldn't install because of dependency on gcc-4.4, which in turn depends on list of so many packages. gcc-4.4 : Depends: cpp-4.4 (= 4.4.3-4ubuntu5.1) but it is not going ...
2
votes
0answers
41 views

Esterel Compiling in Ubuntu 64 bit

The latest version of esterel is available only in 32 bit. Installed it in 64 bit ubuntu. When compiling esterl to C. I haven't get any errors. esterel -simul foo.strl cc -c foo.c While running: ...
1
vote
1answer
76 views

Cross compling Gstreamer for ARM

Hi i was trying to compile Gstreamer for ARM platform. I am facing some issues as followed i have set INSTALL_PATH installed glib at INSTALL_PATH ./configure --prefix=$INSTALL_PATH ...
0
votes
0answers
15 views

conio.h header file giving an error during compiling C program in ubuntu [duplicate]

My code for a simple C program is #include<stdio.h> #include<conio.h> void main() { printf("This is demo program \n"); getch(); } when I am trying to run this c program. I am ...
0
votes
0answers
148 views

configure: error: C compiler cannot create executables Ubuntu 14.04

I am getting configure: error: C compiler cannot create executables error while installing harminv program for meep simulations on Ubuntu 14.4 . Kindly guide me how can i remove the error. config log ...
0
votes
0answers
173 views

Raspberry Pi C++11 std::thread: pure virtual method called

Ubuntu 14.04. I've installed gcc-arm-linux-gnueabihf, g++-arm-linux-gnueabihf (tried 4.8 and 4.9 from utopic). Code that uses std::thread: #include <iostream> #include <chrono> #include ...
1
vote
0answers
71 views

Help with cross-compiling for ARM

I have recently been trying to cross-compile programs for ARM. However, when I run make, I always get an error within a minute or less that says something like ...
4
votes
1answer
200 views

How to compile programs that use term.h?

I try to compile the code below: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <term.h> //#include "/usr/include/term.h" void clear_screen(void) { ...
0
votes
0answers
30 views

Compiling on ubuntu from raspberry pi

Could somebody help me out on getting the compiler that a raspberry pi uses on ubuntu? I am using NOOBS on the raspberry pi, but when I transferred a program over on ubuntu, I get a seg fault (core ...
0
votes
0answers
138 views

How to disable -Werror=format-security in mpicc?

folks! I want to install parallel version of AMBER (a molecular dynamics program) on my Ubuntu 14.04 LTS. However, the "-Werror=format-security" option of CFLAGS always interupts the installation. My ...
1
vote
2answers
571 views

Error installing pynauty: “error: command 'x86_64-linux-gnu-gcc' failed with exit status 1”

I'm trying to install the pynauty Python package. When I ran python setup.py build, I got the following error. I have installed the dependencies. How can I successfully install this Python ...
1
vote
1answer
44 views

Abnormal behaviour of malloc() fuction?

I was playing around with alloc functions in my Ubuntu 14.04 64-bit, gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) and found that malloc returns memory with initializing it to zero. Which is quite weird ...
1
vote
0answers
28 views

Use package without declaring its version

I have installed g++ from here. When I want to compile a program, I have to use g++-4.9 myle.cpp. How can I set it to use without declaring its version g++ myle.cpp?
1
vote
2answers
83 views

GCC Fatal Error

everyone Here's my problem; So, I'm new to Ubuntu and programming and I just wanted to start with C. I created the classic "hello.c" file #include <stdio.h> main () { printf("Hello ...
0
votes
0answers
28 views

mex: Command not found

I am trying to use mex to call C-function from Matlab. However, I get the following error: make: mex: Command not found Could someone please let me know how to fix it?
0
votes
0answers
63 views

gcc command and g++ command does not work

What should I do if my gcc command and g++ command does not work? I have installed opencv from github.com but when I write the code in nano compiler and try to run the same using g++ command,I get ...
0
votes
1answer
145 views

gcc: Skipping incompatible libraries and returning error

This question is related to my previous question. I am trying to install the "TAUCS" library TAUCS is a C library of sparse linear solvers. It has dependency on BLAS, ATLAS, LAPACK, METIS etc. I ...
0
votes
1answer
182 views

Kernel module compilation fails (gcc: error: elf_x86_64: No such file or directory)

I'm trying to compile a simple kernel module, but the compilation fails due to a wrong argument passed by make to gcc. This is the Makefile: obj-m += test.o all: make -C /lib/modules/$(shell ...
0
votes
1answer
60 views

Lubuntu: Apt-Get Can't Find GCC

I'm trying to install gcc so I can compile the no-ip client. When I try to use apt-get, the command returns: unable to locate build-essentials What is the correct apt-get install package command to ...
0
votes
1answer
31 views

LibCurl: how do I compile the example code?

I have install libcurl by running: sudo apt-get install libcurl4-gnutls-dev Now, the folder locates at my /usr/share/doc/libcurl4-gnutls-dev/examples$. Say I want to compile ftpget.c. How do I do ...
1
vote
1answer
60 views

How to install MIRACL c++ library in Ubuntu 14.04?

I'm trying to install the library from the link https://certivox.org/display/EXT/2.+Installation . But when I try the command: gcc –I. –c –O2 mr*.c I get error saying : gcc: error: /I.: No such ...