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.
0
votes
2answers
3k views
How to upgrade g++ to 4.7.1?
Richard Holloway's answer to this thread nicely explains how to upgrade from 4.6.3 to 4.7.0 (on 12.04, in my case) but I would like to upgrade to 4.7.1, which has been available for awhile. However ...
1
vote
2answers
222 views
Why does “pkg-config” print only a blank space with the “--cflags” option?
I installed libcurl using :sudo apt-get install libcurl4-openssl-dev. When I try to compile my program I read that we have to pass where libcurl is located to the GCC compiler(although for me its ...
2
votes
1answer
865 views
Why is the GCC 4.7 PPA not upgrading to 4.7.1?
I would like to install from repository (without compilation from source) the latest g++ 4.7.1 on Ubuntu 12.04. I know I can install g++ 4.7.0 according to this tutorial.
I have also found the g++ ...
2
votes
1answer
1k views
Can not compile any C code under Xubuntu
I am not a seasoned C programmer, but I compile some C code sometimes.
The last time I successfully compiled and run some C code I did it on the same system that I have now (the very same OS on the ...
2
votes
1answer
1k views
Why can't I compile GLIBC on Ubuntu 12.04?
I'm trying to compile the Linux From Scratch kernel, version 7.1 on Ubuntu 12.04, running inside of a virtualbox.
I've worked through a part of the tutorial successfully, but when I reach Step 5.7: ...
2
votes
4answers
852 views
How do I install ALL development libraries?
I want to preinstall all the libraries one could ever need onto a system so someone building something would always have the libraries available.
Like in a computer lab where users are not root.
I ...
2
votes
2answers
370 views
Are libc versions tied to kernel versions?
After reading the answers to my previous question I have come to the conclusion that an answer to the following question is what I was actually looking for:
Does a particular version of the kernel ...
2
votes
3answers
497 views
Are gcc versions tied to kernel versions?
Is there any link between gcc versions and the version of a kernel ? Specifically, would I be able to install a very old version of gcc onto the latest kernel. Alternatively would I be able to build ...
1
vote
1answer
789 views
Installing gcc from Kubuntu DVD
I am having a hard time with a Kubuntu 12.04 install that does not have an internet connection. In order to build the ethernet driver, I need gcc. I installed from the DVD, and I have gcc-4.7-base ...
0
votes
1answer
352 views
Installing g++ on 8.04
I am running Ubuntu 8.04 (currently I do not have the option to upgrade due to hardware problems). I need to get g++ onto my installation but as this is no longer supported I am unable to use the ...
2
votes
1answer
605 views
A question about “add-apt-repository”(gcc 4.7 or bumblebee)
I installed Ubuntu 12.04 in my notebook and I use C++. I want to use C++11, so I want to upgrade my gcc to gcc-4.7. I ran these commands:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo ...
0
votes
1answer
2k views
fatal error: avr/io.h: No such file or directory compilation terminated
how to load avr/io.h header files in the gcc compiler..im using 12.04 version of Ubuntu..
wen ever i run a AVR program this kind of error is generating " fatal error: avr/io.h: No such file or ...
4
votes
2answers
40k views
Install gcc on Ubuntu 12.04 LTS
When I try to install gcc on Ubuntu 12.04 LTS Server with apt-get install gcc, I get the following error:
The following packages have unmet dependencies:
gcc : Depends: cpp (>= 4:4.6.1-2ubuntu5) ...
0
votes
0answers
265 views
Is there any simple C++ code to grab video from UVC webcam and display it simultaneously? [closed]
I'm very very new to Linux and programming!
I'm using ubuntu 11.10 - 64 bits with gcc 4.6.1
I've been searching online for an example C++ code that simply grabs video from a compliant UVC webcam and ...
1
vote
1answer
279 views
How to install a gcc specific version on Ubuntu?
I'd like to install old versions of gcc on my Ubuntu Lucid machine. Particularly, I am interested in the 2.95.3 or 3.0.2 version.
Is there any repository to download this package from using apt-get ...
-1
votes
2answers
294 views
How do I create a deb for GCC 4.7?
I'm sorry but I have tried the tutorials on various websites. Nothing, so far, has worked. I'm using Ubuntu Maverick 10.10. I've downloaded, compiled and installed GCC 4.7.0. Now I want to make a .deb ...
0
votes
1answer
795 views
How to edit makefile?
I want to add -std=c99 flag to make command but I have no idea how to do it. Where is related file located?
@Andrejs Cainikovs But I have not found related file or files yet.
0
votes
1answer
1k views
How to downgrade gcc to version 4.1.1 if I use Ubuntu 11.10 or 12.04 64-bit?
It may seems simlar to this question:
Old version of gcc for new Ubuntu
but I can't solve it with the method provided in that thread
I get some error like
gcc-4.1 : Depends: cpp-4.1 (= ...
0
votes
1answer
235 views
Which version of OpenMP implements gcc 4.5?
I am using Ubuntu 11.04. I have installed the compiler gcc 4.5 by using the command sudo apt-get install gcc 4.5 in terminal. Now I need the command to enable OpenMP. Is it gcc -fopenmp foo.c ?
...
0
votes
1answer
2k views
gcc compiling error for c++ program
When I'm trying to compile a C++ program with gcc, it gives me following error:
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
0
votes
1answer
371 views
Cross compile packages, question regarding armhf dependencies
I'm attempting to cross compile a couple Ubuntu Precise Packages, My current arch is amd64 my target is armhf. I have the correct cross compile GCC toolchain installed, I have correctly utilized the ...
1
vote
1answer
2k views
How to link with libcurl on Pangolin
Since Pangolin, I can't manage to link any program with libcurl, even the example provided with libcurl themselves.
I have installed libcurl:
sudo apt-get install libcurl4-gnutls-dev
Then as the ...
1
vote
3answers
316 views
Is gcc portable between all 64 bit linux machines
I'm doing work remotely by connecting to a Linux terminal with ssh. The machine I'm connecting to is a 64 bit x86 Linux machine. My computer is also 64 bit Ubuntu machine with an x86 processor.
I ...
2
votes
1answer
3k views
Ubuntu 12 breaks gcc 4.7 build from source
I use C++11 extensively, so right after installing the new Xubuntu 12.04 LTS release, I went to build gcc from source. After getting the required dependencies using sudo apt-get build-dep ...
0
votes
0answers
3k views
“bits/predefs.h: No such file or directory” error when trying to compile gcc [closed]
Ubuntu 12's default compiler is 4.6.3; I'd like to use c++1x features only available in gcc 4.7.
Compiling gcc from source fails with the diagnostic bits/predefs.h: No such file or directory.
As ...
2
votes
2answers
3k views
gcc -m32 cannot find libraries
Both 32 and 64 bit compiles worked and then I upgraded from 11.10 to 12.04. Now -m64 works but -m32 can't find libraries.
I've tried reinstalling libraries, and gcc-multilib but no joy. Anyone spot ...
0
votes
0answers
83 views
How do I install gcc 4.7.0 from source? [duplicate]
Possible Duplicate:
How to update gcc to the latest version(in this case 4.7) in Ubuntu 10.04?
How do I install tar bz2 and gz files?
I'm new user in ubuntu & I wonder if anyone can ...
1
vote
1answer
5k views
gcc-arm-linux-gnueabi package not found on 10.04 LTS (Lucid)
I am trying to install the gcc-arm-linux-gnueabi package, but this is the error I am getting:
$ sudo apt-get install gcc-arm-linux-gnueabi
Reading package lists... Done
Building dependency tree ...
25
votes
3answers
36k views
How do I install gcc 4.7?
I wish to install gcc 4.7 so that I can use some c++11 features.
I downloaded the source, ran ./configure and was told I needed GMP. Downloaded the code for that, hit ./configure and was told I ...
4
votes
3answers
6k views
My program cannot run with “command not found” error
I just switched from Windows to Ubuntu 11.10.
I wrote the following code in C with the text editor and saved it as HelloWorld.c in Documents.
#include <stdio.h>
int main()
{
printf("Hello ...
3
votes
1answer
958 views
How to speed up compilation of Ubuntu apps (make, cmake, gcc)
I am compiling some programs here and I have 4 cores. Is there a way to tell make, cmake or gcc to compile using all cores or something to that affect.
0
votes
2answers
4k views
How to uninstall gcc 4.6.2
I have gcc 4.6.2 installed (installed from tar source) in my ubuntu server 10.10 64 bit, I have also installed gcc 4.4.5. I want to uninstall gcc 4.6.2 and make my old gcc 4.4.5 default. How can I do ...
0
votes
1answer
602 views
Messed up gcc/build-essential - how to revert?
I have some strange problems regarding my build setup... acutally I am trying to compile
#include <stdio.h>
int main()
{
printf( "Hello World!\n" );
return 0;
}
By running
gcc -o ...
1
vote
3answers
155 views
Simple way to get all .o files but one
I'm trying to link all *.o files from another folder and would like to in my Makefile do something like;
g++ *.o (folder/*.o and not folder/main.o) -o bin
Is there someway I can use somekind of ...
3
votes
2answers
4k views
Trouble compiling a 32 bit binary on a 64 bit machine
I'm trying to compile a c program as a 32 bit binary instead of 64 bit. I started by just adding -m32 and got some errors. Googling around a little I came across a note to install ia32-libs. ...
1
vote
3answers
300 views
best place to learn ubuntu linux for a windows programmer newbie
I am a programmer, I developed in C/C++/C#.NET, JAVA, HTML and Matlab
Most of my work was in C# and .NET framework generally
I recently switched to try linux for 2 months as exploration, I want to ...
1
vote
2answers
392 views
Installing/upgrading GCC compilier for testing C++
I have ubuntu 10.10, and I have been learning c++ lately on it. I originally installed the gcc compilier via the command:
sudo aptitude install build-essential
I would like to start ...
0
votes
1answer
660 views
Update gcc4.5 from gcc4.4
Can I update gcc-4.4 to gcc-4.5 without updating Ubuntu 11.04 to Ubuntu 11.10?
If yes then how?
3
votes
2answers
2k views
Need a PPA for the latest GCC
I'm looking for a PPA with the latest and greatest version of GCC. I'm too scared to switch to something totally unstable and knock my production system out of wack, but want the newest version of ...
7
votes
1answer
14k views
Building a 32-bit app in 64-bit Ubuntu
After hours of googling, I decide to give up and ask you experts. I am trying to build a 32-bit application (xgap if anyone interested) in my 64 Ubuntu 11.10. I added the CFLAGS=-m32 and the ...
2
votes
1answer
665 views
Using long double functions with gcc
I am having a hard time getting Ubuntu's gcc to understand the long double-manipulating functions from math.h, namely sqrtl, cabsl and cexpl. The message I get for all of them when compiling is
...
7
votes
3answers
11k views
gcc no longer works after upgrade
As an example:
hsmyers@ubuntu:~/c_dev$ cat hello.c
#include <stdio.h>
int main(int argc,char **argv) {
printf("Hello World!\n");
return 0;
}
hsmyers@ubuntu:~/c_dev$ gcc -c -o hello.o hello.c
...
0
votes
1answer
507 views
I want to save apt-get package
I am using Ubuntu 10.10. Suppose I run this command to install GCC:
sudo apt-get install gcc*
I want save gcc on my pc forever, so that next time I do not have to run that apt-get command to ...
1
vote
2answers
7k views
Is it possible to downgrade gcc 4.6.1 to 4.4.x?
I've tried the following:
sudo apt-get remove gcc
sudo apt-get install gcc-4.4
But this does not work, running gcc --version gives a 'No such file or directory' error.
2
votes
1answer
2k views
How do I get gcc installed without a network connection?
I have a fresh install of Kubuntu 10.04.3 on a new motherboard. The driver(s) in the install do not support the Intel 82579V NIC on the motherboard. I've located and downloaded the NIC driver - but of ...
0
votes
4answers
3k views
How do I compile gcc 4.3.4? [duplicate]
Possible Duplicate:
How do I install gcc-4.3?
How can I compile (or just install) gcc 4.3.4 on my Ubuntu 11.10 ?
I've tried to download and compile it with these instructions: ...
3
votes
0answers
255 views
Gnome-terminal scrolling behavior not affected by change in GTK3 source code [closed]
I needed to change the mouse wheel scroll rate in GTK applications. I downloaded and modified GTK3 source code. I recompiled it. It did the trick for gedit and nautilus. But did not do it for ...
0
votes
1answer
161 views
I modified GTK3 source code and recompiled: No effect
In Ubuntu (Gnome) there is absolutely no way the change the mouse wheel scroll rate for GTK applications. It is hard-coded in GTK and determined by a "smart" algorithm which dynamically depends on the ...
7
votes
4answers
7k views
How do you build older gcc versions? Errors about crti.o not being found
How can I build an older gcc (specifically, 4.5.2) on Ubuntu 11.10 and avoid errors about "/usr/bin/ld: cannot find crti.o: No such file or directory"?
I've done a bit of digging and found several ...
5
votes
4answers
10k views
How do I install gcc-4.3?
Is there and easy way to install gcc-4.3 on Oneiric ?
I really need it because matlab depends on i for the creation of mex-files
I tried changing all my resopistories back to Maverick just to install ...