PDA

View Full Version : [ubuntu] Installing GCC 4.2.3 compiler on Ubuntu 10.10 i386



chandrat
December 24th, 2010, 11:06 AM
Hi,

I am new to Ubuntu Linux. I wanted to compile C/C++ code that is compatible with GCC 4.2.3 version. Right now i have 4.4 installed on my machine. Can someone guide me how i can do this?

After searching what i realized was, i can have multiple GCC compilers installed and need to specify the target version which compiling the code.

Any help is appreciated on this.

Regards,
-Chandra.

Seb14
January 7th, 2011, 06:21 PM
Hi, did you receive any reply, or do you find a solution ? I have exactly the same problem : can I install gcc4.2 and g++4.2 (with associated stdlib) on Maverick ? I do not find them in package list.

Thanks

reysr
January 18th, 2011, 04:54 AM
I also need to install gcc-4.2 and g++-4.2 on ubuntu 10.10, 64 bit Maverick in order to be compatible with mex. It is not in the repository. Someone please help.

reysr
January 18th, 2011, 05:14 AM
I installed them though synaptic after adding deb http://security.ubuntu.com/ubuntu hardy-security main in my /etc/apt/sources.list as suggested here (http://packages.ubuntu.com/hardy/amd64/g++-4.2/download).