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

Installing ELF with pre-installed gcc

I already have gcc installed and ran the following commands : wget http://www.mr511.de/software/libelf-0.8.13.tar.gz tar zxvf libelf-0.8.13.tar.gz cd libelf-0.8.13 ./configure --disable-shared ...
1
vote
3answers
23 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
3answers
25 views

Install gcc header files Mint 17.1 [on hold]

I have searched endlessly to find out how to install the header files for gcc onto linux mint 17.1. I realize that this may be a duplicate but I have already tried ever suggestion listed on those ...
0
votes
1answer
12 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
14 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
6 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
26 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
1answer
147 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
22 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
158 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
24 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
28 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
34 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
19 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
28 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
38 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
31 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
14 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
85 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
123 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
45 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
163 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
21 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
68 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
288 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
39 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
55 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
18 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
46 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
95 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
116 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
36 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
20 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
45 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 ...
0
votes
1answer
32 views

Is GCC 4.5 still required to build biarch (Shared WoW64) Wine on Ubuntu?

I would like to build a biarch Wine on my 64 bits laptop. But reading all the pages of the WineHQ project on such a configuration, I found a page about gcc version (written in May 2013), explaining ...
0
votes
0answers
74 views

cross-compiling with clang using mingw

I was trying to compile under linux for windows. I have installed binutils multilib for linux and w64-mingw. If I compile with x86_64-w64-mingw-gcc everything work, but if I use clang with -target ...
0
votes
0answers
44 views

How to run new added binaries using makefile

I have added some pre-compiled tools for developing ARM into the /home/charlie/bin/ARM directory. When I modify the path by PATH=/home/charlie/bin/ARM:"$PATH" I can execute arm-none-eabi-gcc in the ...
1
vote
1answer
774 views

How to disable -Werror=date-time/macro “__DATE__” might prevent reproducible builds

I am trying to compile a driver for a Netis WF2190 adapter. Yes, I just downloaded the latest from them. How can I disable the -Werror=date-time in the build? I can't find it anywhere in the build ...
0
votes
0answers
26 views

ubuntu 10.04 vm corrupted, tries to run 32-bit which ltib can't access path

All, I am running a 64bit version of Ubuntu 10.04lts doing software/kernel work for the imx6 processor. Yesterday, something I did caused ltib not to find the cross-compiler on the path, even though ...
0
votes
0answers
106 views

Just installed mysql c++ connector, 'undefine reference to 'get_driver_instance'

This is frustrating I've followed everything from the official mysql connector c++ website. I downloaded the binaries for 64 bit, opened it with archiver. It extracted into a folder 'usr' and had an ...
3
votes
1answer
60 views

OpenMP unable to use multiple threads, no error associated with compilation

I am using openMP for my lab assignments and everything worked fine few weeks ago, but now it runs only on one thread, I've read and I guess that this is due to conflict between packages. This is the ...
0
votes
1answer
255 views

cannot execute filename.o file in cygwin with gcc

I have a build shell script that reads as follows, #!/bin/sh gcc -o posture.exe main.c posture_algorithm.c Then I run the following command to set permission, chmod 755 posture_algo.o followed ...
0
votes
2answers
88 views

How to install GCC without internet connection and what do I have to keep in mind when installing GCC?

I have 2 operating systems on my pc: windows 8.1 and Ubuntu. Windows 8.1 has internet connection, but Ubuntu does not. Is there a way I can download GCC for Ubuntu on my drive and then transfer and ...
0
votes
0answers
57 views

How to add libxml2 to a Makefile?

While compiling a C++ tool called BioC I encountered a problem with the libxml header. In my attempt to solve it I downloaded libxml2-2.9.2 and compiled it in '/usr/local/lib/'. Then I studied the ...
0
votes
1answer
648 views

Error installing pygame: “error: command 'x86_64-linux-gnu-gcc' failed with exit status 1” [closed]

So I've tried pretty much all the answers to similar questions I've been able to find, but I still haven't found a working solution. The complete info I get is: ...
-1
votes
1answer
668 views

/bin/bash: g++: command not found error 127

I was trying to install a software quicknet from a tar.gz file. After using ./configure when i tried using make it showed the following erroe g++ -I. -I. -c QN_args.cc /bin/bash: g++: command not ...
0
votes
1answer
49 views

How can I get the default gcc compiler back?

I can't compile ("make") anything at the moment. It all ends with the following: as: unrecognized option '--64' So I searched for the cause and found that gcc -version gave me this: gcc (GCC) ...
0
votes
1answer
198 views

Problem linking against pcap.h

I am trying to compile ethping Here is the command that gets issued via make: gcc -Wall -Werror -ggdb -g -O2 -lpcap -o ethping ethping.o ieee8021ag.o dot1ag_eth.o I now get this error message: ...