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
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 ...
-1
votes
0answers
15 views

Conflicts jsoncpp and json [on hold]

when i try to compile my code then its not compile and gives me following error so any one has solution for that. ketul@ketul-VirtualBox:~/bksrc$ make gcc SearchZipCode.c -o SearchZipCode -I ...
0
votes
0answers
25 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
57 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
26 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
140 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
17 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
35 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
110 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
32 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
26 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
42 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
15 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
36 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
70 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
79 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
23 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
40 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
27 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
56 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
39 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
540 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
19 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
80 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
55 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
152 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
64 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
39 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
394 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
363 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
38 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
130 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: ...
1
vote
0answers
261 views

Undefined references to `_gfortran_runtime_error_at'

I use a model is written Fortran90 under Ubuntu 14.04. The gfortran 95 compiler (gfortran 4:4.8.2-1ubuntu6) and the gcc 4:4.8.2-1ubuntu6 is installed by Ubuntu Software Center. The installed gcc has ...
0
votes
5answers
67 views

How to figure out whether a package is already installed?

I installed Ubuntu 14.04.1 as a guest on a windows host. Before installing GCC, I need to make sure that the following packages are installed: GMP, MPFR and MPC I checked the Ubuntu package site ...
-1
votes
1answer
69 views

“Command not found” after running a file compiled on the same directory [duplicate]

I don't know what is going on... d@d-SVF15A17CDB:~/University/CSC209/a1$ gcc -o remvocals remvocals.c d@d-SVF15A17CDB:~/University/CSC209/a1$ dir remvocals remvocals.c ...
0
votes
1answer
32 views

Can't install oracle java and gcc-4.9:i386 on 64bit OS

I have installed oracle jdk7 from the WebUpd8team PPA and it's working just fine, now I want to run a 32bit game (Dwarf fortress with dfhack, for those who know it) and that requires gcc-4.9:i386 ...
0
votes
0answers
50 views

makefile: how to perform “ranlib” operation correctly

I downloaded a third party lib( Library link) which installs and compiles properly. It creates multiple object file (*.o), rather than creating executable, it's using gnu libtool to do some scripting. ...
0
votes
1answer
153 views

How to install library that uses g77

I am trying to install "TAUCS" (http://www.tau.ac.il/~stoledo/taucs/) library. However, I am getting following error: /usr/bin/ld: skipping incompatible external/lib/linux/libmetis.a when searching ...
2
votes
1answer
4k 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: ...
0
votes
0answers
35 views

I am trying to compile WRF, while checking System Environment Tests am getting error as shown below

I have Created a new, clean directory called Build_WRF, and another one called TESTS (placed Fortran and C Tests Tar File inside TESTS). SUCESSFULLY completed 3 TEST. In the 4th TEST -- Fortran ...
1
vote
1answer
188 views

Replace '0ubuntu1~12.04' packages with '16ubuntu6'

I recently upgraded my server from Ubuntu 12.04 to 14.10. I had installed GCC 4.9 (4.9.2 apparently) before the upgrade and today I wanted to install gcc-4.9-multilib, but apt-get gave me: ...
0
votes
1answer
24 views

What is wrong with my executable compiled with GCC? [duplicate]

This is my source file, base.c ... #include "/usr/include/stdio.h" int main( int argc, char *argv[] ) { sprintf("%s\n", "woohoo"); return(0); } I compile and execute with ... ...
0
votes
0answers
111 views

Switching from GCC to Clang to compile with OpenCV

I have been compiling code that uses OpenCV by using a CMake project with the following flags in GCC: -Wall -Werror -std=c++14 And it compiled every time. No problems anywhere. When I switch to ...
2
votes
2answers
649 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 ...
0
votes
0answers
160 views

NVIDIA driver installation failed due to gcc version

I am trying to install the latest NVIDIA driver in Ubuntu 12.04 using the downloaded .run file but the installation failed. Below is the suspected point of failure. -> Performing CC sanity check ...
0
votes
1answer
209 views

Error running make - array type has incomplete element type

I am trying to install libbow library. When i run make file the following error is generated gcc -c -Ibow -I. -I./argp -DHAVE_LIBNSL=1 -DHAVE_STRERROR=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_RANDOM=1 ...
0
votes
0answers
69 views

reinstall libgcc1 to get gcc 4.9

I want to go from gcc 4.8 to 4.9. I had already some 4.9 stuff flying around (gcc-4.9-base, lib32gcc1 and libgcc1(. My (bad) plan was to uninstall them and then get them again with gcc 4.9. ...
1
vote
0answers
62 views

more than one version of gcc installed

When I enter clang++ -v it outputs Ubuntu clang version 3.5.0-4ubuntu1~xedgers14.04.1 (tags/RELEASE_350/final) (based on LLVM 3.5.0) [...] Found candidate GCC installation: ...
2
votes
1answer
578 views

python 2.7.9 backport to trusty (14.04)

I try to backport Python 2.7.9 from vivid to trusty but when launchpad build this pakage there is an build error. I create my backport : backportpackage -d trusty -u ppa:splanquart/python ...