1
vote
0answers
61 views

Will gcc >= 4.7 ever come officially to 12.04? [duplicate]

We have ubuntu 12.04 LTS installed at our systems, and we would like to use gcc >= 4.7 for C++11 support. Will a version of gcc >= 4.7 be added to the standard repositories (any time soon) or will the ...
0
votes
1answer
36 views

Make gcc coloring the default

Is there a way to automatically make gcc color its output? I am looking to avoid an alias as the the command is commonly used in makefiles (where it will not be used). Is there an easy way to do ...
8
votes
4answers
5k views

How to install gcc-4.8 in Ubuntu 12.04 from the terminal

I checked the gcc version on my system. It is currently at 4.6.3. I read that gcc-4.8 is out. I tried the following commands without success: sudo apt-get install gcc (gcc is already the newest ...
1
vote
1answer
50 views

Errors while compiling allegro library program on gcc

I've tried installing allegro library on my system.I didn't get any error while installing the library, but it seems that something went wrong while installation. My code along with the errors I'm ...
4
votes
1answer
280 views

Building webkit from source

I tried to install the webkit applicaion from sources using this manual: https://help.ubuntu.com/community/WebKit When I type: ./autogen.sh --prefix=/usr the following error occurs: checking for ...
3
votes
1answer
207 views

How to activate gcc 4.7 version?

I have gcc 4.6.3 installed: gcc --version gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 I have installed newer version: apt-get install gcc-4.7 But i still get result "gcc 4.6.3" when I type gcc ...
1
vote
2answers
39 views

gcc or cc no longer seems to work in 12.04 lts

I recently installed 12.04 LTS and I would like to compile short c programs. When I enter gcc or cc at the command promp to compile a simple test program "test.c"I get the following: test.c: In ...
0
votes
0answers
132 views

ns-2.28 installation problem in ubuntu-12.04

I have installed gcc41-compat-4.1.2-ubuntu1210_i386.deb and g++41-compat-4.1.2_i386.deb and then reboot. After that I have done following: tar xvf ns-allinone-2.28.tar.gz patch -p0 < ...
1
vote
1answer
64 views

What gcc version do I need?

I have installed ns-2.28 on ubuntu 12.04. My kernel version is 3.2.0-29-generic-pae. What gcc version matches my ns-2.28 & 3.2.0-29-generic-pae?
0
votes
1answer
332 views

gcc and g++ are installed but ubuntu says they are not installed

I have installed g++ and gcc from repository on ubuntu 12.04 ad you can see that they are indeed installed mahmood@pc:~$ dpkg -l | grep gcc ii gcc-4.4 4.4.7-1ubuntu2 ...
8
votes
1answer
158 views

How can I get GCC 4.7 installed on Precise?

The latest version of GCC in the Precise archives is 4.6.3. However, GCC 4.7 adds support for some newer C++11 features (like delegating constructors). Quantal's package archives have GCC 4.7.2 ...
1
vote
3answers
2k views

cannot find crti.o: No such file or directory

When I want to make gcc 4.1.2 (ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.1.2/gcc-4.1.2.tar.bz2) on my ubuntu 12.04 (x86_64). The current active gcc is 4.6.2. I did: ...
0
votes
0answers
45 views

Why gcc in 64 bit ubuntu doesn't detect the following array overflow? [closed]

So my code is #include <stdio.h> #include <string.h> main() { char *a="123456789abcdef"; char b[10]; int i=0; while((b[i]=a[i])!='\0') ++i; printf("%s ...
0
votes
0answers
158 views

compile problem in ubuntu12.04

when I compile g77 programs it comes out like this: g77 -g -C -o remodl remodl.o emiasp91.o libtau.a libsun.a /usr/bin/ld: cannot find crt1.o: No such file or directory /usr/bin/ld: cannot find ...
0
votes
0answers
153 views

Compilation with libopenmpi-dev errors on 12.04 LTS

I have installed package mpi-default-dev 1.0.1 with libopenmpi-dev 1.4.3-2.1ubuntu3 as dependency. When I tried to compile code with -Wall flag I got compilation errors: In file included from ...
0
votes
1answer
929 views

apt-get gcc 4.7 multilib

I followed the instructions from @jokerdino here in askubuntu sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-4.7 But to get a successful ...
1
vote
0answers
3k views

GCC 4.8 Installation? [closed]

What is the best way to install GCC 4.8 in Quantal Quetzal (12.10)? I am trying to explore it's improved diagnostic messages and compare them to Clang, so 4.7 will not do. gcc-snapshot from the ...
1
vote
0answers
897 views

How do I install GCC 4.7.1 on 12.04?

It so happens that I hit a bug in Ubuntu's GCC 4.7.0, which has been fixed in later versions of GCC; I believe it's already fixed in 4.7.1. I can always download the source, compile and install it, ...
1
vote
0answers
42 views

setting permission for executable file output of gcc [duplicate]

Possible Duplicate: How to 'chmod' on an NTFS ( or FAT32 ) partition? Can't make a file executable i m pretty new to linux and gcc. i have a file1.s file which i tried to ...
1
vote
1answer
900 views

Problems with libconfig PKG_CONFIG_PATH enviroment variable

I've coded a project with some files in C. To make it easy for the user to start the program I started to generate a cfg-file. For this reason I installed libconf. Unfortunately on compiling with a ...
1
vote
0answers
328 views

How do I install/compile CORSIKA & FLUKA for 32-bit Ubuntu 12.04?

I want to use some programs (CORSIKA and FLUKA) which are essentially designed for 32 bit systems. I've installed the 32-bit version of 12.04 on my system (Intel® Core™ i7-2700K CPU @ 3.50GHz × 8). ...
1
vote
0answers
222 views

gcc 4.3 not in repository anymore?

matlab has been so nice not to update its supported compilers. The latest version supported that supports the so-called mex-files is gcc-4.3.4. Now, this version also seems to be deleted from the ...
2
votes
4answers
640 views

.exe file created by C programming through gcc compiler isn't executing

I am using Ubuntu 12.04 on my desktop and Ubuntu 11.04 on laptop. I am writing c program which contains math. I am creating executable file through the command: gcc -o filename.exe filename.c -lm ...
2
votes
2answers
369 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 ...
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 (= ...
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 ...
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 ...
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 ...