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
9 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
10 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
37 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 ...
0
votes
0answers
31 views

Code::Blocks cannot detect the gcc and g++ compilers version 4.8

I installed Code::Blocks 13.12 in my Ubuntu 14.04 and I installed gcc & g++ 4.8 by the terminal. But when I create a C++ console application and try to compile it, it gives me the following ...
0
votes
0answers
81 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
12 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
0answers
54 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
19 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
18 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
0answers
72 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
40 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
23 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
22 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. ...
0
votes
0answers
26 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: ...
1
vote
1answer
64 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 ...
0
votes
1answer
17 views

GnuCOBOL not generating dynamic link library ELF references

Now GnuCOBOL, the Ubuntu package is open-cobol. As of Ubuntu 14.04? the compiler fails to link in dynamic library references for dlopen to use at run-time. No trace of the library in ldd from gcc -l ...
2
votes
1answer
59 views

compiling g++ programs

I have the gcc installed. I can compile C programs. But I cannot compile C++ programs. If I write g++ on comd line, it says program not installed. I tried sudo apt-get install g++ It gives me a very ...
0
votes
1answer
47 views

Using mysql in C programming [closed]

I installed ubuntu on a virtual machine.There,I installed mysql server(sudo apt-get install mysql-server) .This worked, because I could acces mysql-u root -p password. After that,I did : sudo apt-get ...
-1
votes
1answer
25 views

Install Flex without removing other packeges?

I tried to install ettercap tool but it stops with error "configure: error: flex was not found, please install" so i tried to install flex using $sudo apt-get install flex command but it reports to ...
0
votes
1answer
94 views

Ubuntu freezes in recursion g++

Im using Ubuntu 14.04 and gcc version 4.8.2. Sometimes when I run some C++ code which has some bugs, for example Runtime Error, it goes to a deep recursion (I suppose...) and all my computer freezes. ...
0
votes
0answers
53 views

g++ and gcc do not work in ubuntu 14.04

After last sudo atp-get upgrade my gcc and g++ don't work and I'm trying to install g++ in my ubuntu 14.04 and I have this error: g++: gcc: What is the problem? sudo apt-get install -f
1
vote
1answer
48 views

Build Celestia on Ubuntu 14.04

I'd like to build Celestia-1.6.1 on my Ubuntu 14.04 machine however, it seems that I can't do that easily with the gcc version 4.9.1. I'm using source files from ...
0
votes
0answers
47 views

Convert a c file to coff file for nachos

I am new in ubuntu. I am working on nachos and I want to compile a c file in order to convert to .coff format. So I have downloaded mips-x86 linux-gcc and I have extracted both nachos and this ...
0
votes
1answer
96 views

Unable to run g++ after upgrading to Ubuntu 14.10

I did the update from Ubuntu 14.04 to Ubuntu 14.10 yesterday. Today I tried to run g++-4.8 as I normally do, but I have the following error: make: g++-4.8: Command not found I have the same error ...
0
votes
1answer
32 views

Which compiler i have to use to understand C behaviour exact behaviour

I am confused regarding with the c compilers. as per my knowledge for a programmer the code is not important but the internal behaviour is very important.cause if we know how the compiler behaves for ...
0
votes
0answers
176 views

Can't compile C++ in Code::Blocks

I have some trouble with compiling c++ code from **Code::Blocks* IDE on Ubuntu. When I save the code as a .cpp data and click on Run under Build it says: "Target uses an invalid compiler; run ...
0
votes
2answers
343 views

No such file or directory #include <string> [closed]

I wrote the program kai.c and now am trying to compile it with gcc kai.c -o kai, which returns: kai.c:5:18: fatal error: string: No such file or directory #include <string> ^ ...
3
votes
1answer
120 views

Where is `__FLT_MAX__` constant defined on Ubuntu?

I am learning C programming using gcc compiler under Ubuntu 14.04 (64bits). As a practice, I am trying to locate the definitions of size limits of multiple C data types. I have easily located ...
0
votes
0answers
196 views

Problem with mex even after installing matlab support

I've looked everywhere for a solution to this but people seem to have no problem with mex and matlab if they install the matlab-support. I however just cannot get this to work. So here is what I did: ...
0
votes
0answers
28 views

how to make gcc search for headers in all subdirectories?

I'm new to Linux so please excuse me for my noobish question. I've installed libraries (PCL) which save their headers under usr/include as it should be. However, the problem is that an example of the ...
1
vote
0answers
97 views

How to compile Saurik's ldid on Ubuntu?

I am trying to install Theos on my Ubuntu and I am stuck on step which is supposed to install ldid: git clone git://git.saurik.com/ldid.git cd ldid git submodule update --init ./make.sh When I ...
1
vote
1answer
227 views

Using gcc 3.4 on Ubuntu 14.04

By exactly following this post, I was able to install gcc 3.4 on a fresh install of Ubuntu 14.04. But, when I try to compile a program, it fails with the following error: /usr/bin/ld: cannot find ...
0
votes
1answer
78 views

FT_Read is not working properly [closed]

I am writing code for serial programming for serial communication between FTDI device and Desktop through XBEE. I am writing command on device for (in example) reading Battery Voltage Current and ...
0
votes
0answers
34 views

How to link to 32-bit SCTP package on a Lucid 64-bit machine?

I am running Ubuntu Lucid 10.04.4 LTS 64-bit. I need to build a 3rd party 32-bit program. The build of this program is failing: gcc-4.4 -m32 <snip> /usr/lib/libsctp.so.1: could not read ...
0
votes
0answers
13 views

How to remove older versions of gcc and use the latest 4.8 on Ubuntu 12.04? [duplicate]

I have gcc 4.6,4.7 and 4.8 installed. But running gcc uses gcc 4.6 or calling gcc --version return 4.6.2. How can I change it to run gcc 4.8 by default by either removing or not removing the older ...
0
votes
0answers
47 views

Installing input-wacom drivers gives error at ./compile on my Gateway M275E penabled laptop

sam@sam-M275:~/input-wacom-0.23.0$ ./configure && make && make install checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is ...
1
vote
1answer
85 views

Why can't I link this simple assembly language object file?

I am using Ubuntu 14.04 and Terminal. I am doing an assembly language exercise for a class. I wanted to try running this in terminal, but I am unable to link this file. [I think 'link' is the ...
0
votes
1answer
203 views

Problem compiling JOS - undefined reference to `__udivdi3' and `__umoddi3'

I'm taking a class on operating systems this semester and have ran into a problem while setting everything up. I cloned the git repository for the JOS operating system and would like to try to ...
1
vote
1answer
111 views

Update GCC compiler in Ubuntu 14.04 to 4.9 [duplicate]

Can I upgrade my GCC compiler now in Ubuntu 14.04? Has the final usable version (4.9) been released?
0
votes
0answers
11 views

XM3DEDIT won't run on v.14.04.4 LTS DeskTop

My C coded program (XM3DEDIT) runs OK on console for other Linux (Red Hat and Precise-Puppy). But not on latest Ubuntu 14.04.1 and openSUSE 13.1 DeskTops. One problem is I can't find console or ...
1
vote
0answers
193 views

U-boot build fails - cannot find lgcc / libgcc.a

I am using Ubuntu 12.04 LTS 64 bit and trying to create a Linux Image for the SAMA5D36-EK. In doing so I need the mkimage command. According to website www.at91.com/linux4sam/bin/view/LinuxSAM/U-Boot ...
0
votes
0answers
17 views

How to call a older version gcc? [duplicate]

My ubuntu is 14.04, the default gcc and g++ is 4.8, I installed gcc and g++ 4.4 manually, so how can I specify the older version of gcc to call when I compile a program?
0
votes
0answers
28 views

Rpc Programming

I am compiling the client program using the command: cc -o chkdate chkdate.o date_clnt.o -lrpc But is giving me the following error : /usr/bin/ld: cannot find -lrpc I am using Ubuntu 14.04. ...
2
votes
1answer
91 views

Undo update-alternatives

I had to run the command sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20, but unfortunately I misstyped and wrote sudo update-alternatives --install /usr/bin/gcc gccc ...
0
votes
1answer
47 views

gcc compile error

I built a cross compiler on Ubuntu 14.04 32 bit for MIPS platform before. but now I can't compile ordinary C programs with GCC. i removed and reinstalled everything but every time i get this error. ...
1
vote
0answers
119 views

OsmocomBB - compile error

I tried to install OsmocomBB on my Ubuntu, I've got gnu-arm-toolchain, but when I'm compiling there is an error: configure: error: in `/home/robert/OsmocomBB/osmocom-bb/src/shared/libosmocore/build- ...
0
votes
1answer
151 views

Ubuntu 10.04 update GCC 4.8.1 to GCC 4.8.2

I installed GCC on Ubuntu 10.04 using the following commands: sudo apt-get update sudo apt-get install gcc-4.8 sudo apt-get install g++-4.8 sudo update-alternatives --install /usr/bin/gcc gcc ...
0
votes
1answer
229 views

Ubuntu 14.04 GCC 4.8.2 link dynamically against (older) GLIBC 2.11.1

For the needs of my project I need to use G++ 4.8.2 and GLIBC 2.11.1. Ubuntu 14.04 comes with EGLIBC 2.19. How can I make G++ link dynamically against GLIBC 2.11.1? If there is, how do I go about ...
0
votes
1answer
91 views

Ubuntu 14.04 libc.a file not recognized

When i try to compile a simple .c file with gcc i always get this error: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libc.a: file not recognized: File format not recognized i tried ...
3
votes
1answer
249 views

how to make a static binary of coreutils?

I'm trying to make a static binary of rm, so I tried compiling coreutils with configure; make SHARED=0 CC='gcc -static'; make install but I keep running into errors. First make complains about ...