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
17 views

Problem installing g++ ccompiler on Ubuntu 14.04

I tried to install g++ using packages from another user. offline..but there were errors. After connecting to the net I tried to install using sudo apt-get install g++, but it gave the following ...
-1
votes
0answers
7 views

GCC compiled c-code on an sd-card not executing

So i wrote a program and compiled it with gcc program.c -o program when i try to run it with ./program i get the following bash: ./program: permission denied With 'sudo ./program' it tells me ...
0
votes
2answers
37 views

what is exactly object file and how to open it

g++ myCppFile -o myOut I do not know about compiling procedure. But all I want to know is what is the type of myOut? It is not text. It is not like configuration file. So what is it ? And how to ...
1
vote
0answers
31 views

How to install old version of gcc on Ubuntu 14.04

I need to install gcc 3.0 on Ubuntu 14.04. I tried to compile sources but it throws error. Is possible to install gcc 3.0 from repository? How to do that? This does not work for me. apt-get update ...
0
votes
1answer
38 views

C/C++ Compiler for Ubuntu like Dev-C++

Need a good c/c++ compiler for Ubuntu. I like coding or programming. I used Dev-C++ on Windows. Is there any good compilers like Dev-C++? I tried code::blocks ide but it seems a little buggy for me. ...
0
votes
1answer
28 views

How to install clang++?

I'm having trouble getting clang++ to work as I compile my code. Specifically, I'm getting a make: clang++: Command not found error. I've run sudo apt-get install llvm, and also sudo apt-get install ...
0
votes
1answer
29 views

using system(“clear”); command to clean the screen yet last line printed. using GNU gcc compiler please help

I am using 'system("clear");' command to clean the output screen yet the last line printed is displayed.I am using Geany text editor using GNU gcc compiler.Please help and tell me clear the whole ...
-1
votes
0answers
30 views

llcm-gcc include path error

for a specific build i need to use the llvm-gcc for linux x64 from here: http://llvm.org/releases/download.html#2.9 The problem is, its include path is messed up. I added the /bin directory to my ...
1
vote
0answers
35 views

Why can I compile against libclang-3.5.so and not against libclang.so?

I am trying to compile a C source file, that needs to be linked against a dynamic library I installed through apt-get (libclang.so). apt-get installed the clang shared libraries in ...
0
votes
0answers
14 views

How to install and use (link) librsync library

I installed the librsync library using: sudo apt-get install librsync-dev librsync-dbg. But then how do I link this library statically? I Tried: gcc -o my_prog my_prog.c pkg-config --libs ...
-1
votes
1answer
44 views

How to install gmp 4.3.2 on ubuntu 14.04

I want to install gcc-4.4.3,for which I have to install gmp 4.3.2. When I run: ./configure make I get this error. Can you help me? make all-recursive make[1]: Entering directory ...
0
votes
1answer
44 views

Should `arm-none-eabi-gcc` include a `stdio.h`?

I'm trying to build a simple example from the SDK for the TI CC3200 (Cortex M4), but when I try to compile it complains about stdio.h. make CC ../main.c ../main.c:45:19: fatal error: stdio.h: No ...
0
votes
2answers
57 views

I am not able to compile a simple program using gcc

Wrongly I have install ia32-libs but my host system is 64 bit. Now whenever i try to compile c file i get a message as: unrecognized option '--64' I have uninstall th ia32-libs but I am getting ...
1
vote
0answers
11 views

Change gcc output directory [closed]

How can the output of gcc be directed from default directory to an output directory? I created a source directory containing the source programs and an output directory to store the compiled ...
3
votes
3answers
507 views

What version of GCC is used by the make command? [closed]

Is there any way to know what version of gcc is used by the make command? I have 5 versions installed of gcc on my computer: by dpkg -l | grep gcc ii gcc ...
1
vote
1answer
83 views

C compiler cannot create executables

Everything was right. I have installed gdb from github and installed in /usr/local/bin. After that i removed default gdb(/usr/bin) using the following command sudo apt-get remove gdb Now, when try ...
0
votes
2answers
32 views

how to know which version of the compiler used to install a program from source among all versions of the that compiler

I installed a program via source code . To do that I downloaded a gcc and g++ appropriate for that. I use this command in order to install that $ export CC=gcc-?? CXX=g++-?? && ./install ...
1
vote
0answers
27 views

unable to compile program using -m32 and gcc

I have installed multi2sim on my 64-bit Ubuntu machine. Both gcc 4.8 and 4.8.1 is installed in my system. Even after setting and exporting the LD_LIBRARY_PATH AND LD_INCLUDE_PATH, and installing the ...
1
vote
0answers
12 views

Modify Ubuntu toolchain

In version 11.10 the flag "--as-needed" became default in the Ubuntu toolchain. Due to many problems I have with undefined symbols at runtime I don't want to change all the makefiles anymore. I want ...
0
votes
1answer
74 views

How to install libmudflap in 64-bit 14.04 “Trusty”

I wish to demonstrate mudflap working on this program, int main() { int tab[10]; int i; for (i = 1; i <= 10; i++) tab[i] = 0; return 0; } but I get an error, $ gcc -fmudflap ...
0
votes
1answer
101 views

How to install an 'ansi c' compiler ? ? ? ( how can I extend GCC G++ with ANSI C )?

To explain the problem (try two): I can't install the lua compiler (lua dot org) with the newest version of Ubuntu, quote out of the manual to install lua: Installing Lua Lua is distributed in ...
-1
votes
1answer
289 views

cannot install lxml in virtualenv (python)

I cannot install lxml. In system i have python-lxml package, but i need other... Please help, if you can - my task is install lxml for development in virtual enviroment using virtualenv. I found this ...
1
vote
1answer
27 views

OpenMP activation on geany

I am new to parallel programing and C, and was wondering how to active openMP on geany or another C program on linux? It is a simple hello world i am trying to make: #include <stdio.h> ...
1
vote
0answers
56 views

GCC related issue(Need to install latest version of GCC 4.9.0)

I am using Ubuntu 14.04 LTS. I want to install latest version of GCC 4.9.0. Is it possible to uninstall default GCC compiler prepacked with OS? In this link, I read that uninstalling the default ...
1
vote
1answer
109 views

Lubuntu - compiling vlc v.1 command make and make install not working

Good day everybody! So, this is my first topic on Ubuntu's forum, and as a perfect Linux beginner and a non-English speaking student, I'll try to do my best to be the most explicit as I can. So ...
0
votes
2answers
17 views

ELF shared libraries

I have a question about using libraries on Linux. Lets say I have a program called MYPROG and two libraries LIBABC.SO and LIBXYZ.SO. MYPROG loads the module LIBABC.SO with "dlopen RTLD_NOW". "dlopen" ...
0
votes
0answers
30 views

Installing GCC 4.9 on 12.04 (precise) [duplicate]

I can't find any ppa's that provide gcc 4.9 for Ubuntu 12.04. Any suggestions on how to obtain it? Note: this is probably not a duplicate question. Related questions are: gcc 4.8 for 12.04: ...
-1
votes
1answer
64 views

GCC 4.8.1 to GCC 4.6.3

i am using ubuntu 12.04. Initially ubuntu 12.04 have gcc 4.6.3 with it. I upgraded it to 4.8.1. But now one of my application that was working fine with 4.6.3 are not working with 4.8.1. I want to ...
0
votes
1answer
44 views

makeMKV setup error

When I run sudo bash configure (./configure doesn't work), I get this: checking whether we are cross compiling... configure: error: in /media/pitaj/Shared/Documents/makeMKV/makemkv-oss': ...
0
votes
2answers
31 views

Downgrade to GCC < v3.0

For specific reasons I have to downgrade my GCC to version 2.x using apt-get (not downloading and compiling the source) Is that possible? If yes, how can I find the repository address and install it ...
0
votes
1answer
352 views

How to install gcc-4.7-arm-linux-gnueabihf on Ubuntu 12.04?

I want to install gcc-4.7-arm-linux-gnueabihf or greater on Ubuntu 12.04, any suggestion? The default one is gcc-4.6-arm-linux-gnueabihf.
0
votes
0answers
15 views

how to downgrade gcc from 4.5.2 to 2? [duplicate]

I'm using ubuntu that have gcc version 4.5.2 on it. I really need to downgrade it to any 2 versions but i don't know how and where can i find that version.
0
votes
1answer
137 views

How to enable c99 and c11 on gcc?

When I compile the following code it gives compilation error that error: ‘for’ loop initial declarations are only allowed in C99 mode for(int i = 0; i < 5; i++) and to compile your code use ...
3
votes
3answers
2k views

How do I use the latest gcc 4.9 on Ubuntu 14.04

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
248 views

g++ 4.8.2 on ubuntu 14.04 fails to compile source files

I'm really frustrated at present in that g++ is throwing up so many errors even on a simple .cpp file. I'm typing: g++ test.cpp at the command line. Thanks in advance for any help. I downloaded g++ ...
0
votes
0answers
72 views

Unable to install gcc on ubuntu 12.04 LTS

I am trying to install gcc on ubuntu using : sudo apt-get install gcc I get the following error: Reading package lists... Done Building dependency tree Reading state information... Done You ...
0
votes
0answers
95 views

/usr/bin/ld: error: cannot find -lpython2.7

While installing pyscard.py I get this error, gcc -pthread -shared -Wl,-rpath,$ORIGIN/../lib -g -L/home/builder/jenkins/workspace/Python_Masters/ARCH/x86_64/label/Linux/core/lib ...
2
votes
0answers
102 views

bfd.h should include libiberty/ansidecl.h in Ubuntu 14.04?

binutils package seems to be changed, as include directory of libiberty.h has moved to /usr/include/libiberty, thus there is possible a wrong include in bfd.h regarding ansidecl.h. Getting those ...
2
votes
1answer
83 views

Compile error when trying to run make

I have the following error when trying to run make command, /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../libcppunit.a when searching for -lcppunit /usr/bin/ld: ...
3
votes
1answer
282 views

gcc won't link with -m32

Trying to compile even the simplest (int main(){}) program with -m32 on a 64-bit system fails: $ gcc -m32 test.c /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.8/libgcc.a when ...
2
votes
1answer
7k views

How to install gcc 4.9 on Ubuntu 14.04? [duplicate]

Now that gcc 4.9 is officially released, is there an easy and convenient way to install it on Ubuntu 14.04 through the package manager (ie. apt-get)? I would also appreciate information on how to ...
0
votes
1answer
54 views

Install something without make install [closed]

I have been struggling for few days trying to install a software. I'm not actually working on Ubuntu but I think the steps to do are the same. Working on a gentoo (The operating system of the Robot ...
0
votes
0answers
101 views

I already have the newest version of g++ but I still get a 127 error what do I do?

I have done the following. I just don't know what to try next. I supposedly have the newest version of gcc by following these directions sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo ...
0
votes
2answers
199 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 ...
1
vote
0answers
74 views

How do I set gcc 4.8 to be the default gcc?

I'm trying to update to gcc 4.8.2. I have Ubuntu 12.04. after this if I type gcc -v it says gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) Next I typed sudo add-apt-repository ...
0
votes
0answers
26 views

Trying to compile 'mips64' program with gcc 3.3 but it has an error when building binutils and gcc

I tried building binutils and gcc3.3 for mips64 and everything goes well until: make CC=$GCC make install [For make an error saying, that: gmp.h and confdefs.h are not found] [For make install: ...
2
votes
1answer
32 views

how to create a ppa .dep that depends on non-default GCC?

I want to create a .dep package in my PPA. That project however requires a recent GCC 4.8 or Clang 3.4+. I found out, that you can add custom PPA dependencies, so I added ubuntu-toolchain-r/test to ...
0
votes
1answer
42 views

LD_LIBRARY_PATH

I have tried to link VINCIA to ROOT, but there is a problem related to the location of the shared libraries in my system. Since I have installed all these tools in a directory which is different than ...
0
votes
0answers
165 views

GDB not showing C code when gcc -g option is used

I have a file called hello_world.c. I use the command gcc -g -Wall hello_world.c Then gdb ./a.out I set a breakpoint at line 27 And run, it tells me this: warning: no loadable sections found in ...
0
votes
1answer
38 views

problem with gcov, cannot run

So i'm trying to optimize a file called linpack.c. I have to use gcov to find the 10 most executed lines. I've been given these compiler options: -fprofile-arcs -ftest-coverage -O2 So i ran this $ ...