-   Debian (
-   -   Using old gcc. How to do? Is it safe? (

kaz2100 12-28-2008 07:59 AM

Using old gcc. How to do? Is it safe?

I have lenny Penguin, with gcc-4.3.

I need to use older gcc's (4.2 or 4.1) to compile. Makefile is complicated (many children, grandchildren) so that I am reluctant to modify them. I know how to switch under MacOSX, but not debian.

Question 1.
How to do?
I installed older versions using aptitude, then made links (gcc and g++).

Web search says that "ccontrol" takes care, but I could not figure out how it works.

Question 2.
Does it make my penguin unstable? Is binary stable?

Thank you for replies.

Happy Penguins!

the trooper 12-28-2008 08:32 AM

This link may be of use:

The trooper

knudfl 12-28-2008 10:14 AM

No problem using them all ( except for kernel compilation )

They are all very stable, but with some differences.
gcc-2.95.3 gcc-3.3.6 gcc-3.4 gcc-4.1.2 gcc-4.2 gcc-4.3.2

And can be used by starting a command with e.g. for gcc :

CC=gcc4.2 ./configure or CC=gcc4.2 make

g++ : CXX=g++4.2 ... or whatever you have in /usr/bin
so in fact changing the link is not necessary.

All times are GMT -5. The time now is 12:47 PM.