[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc 3.2 and gcc 2.95



Jeffrey L. Taylor wrote:

Quoting Fluberman <fluberman72@wanadoo.nl>:


I don't know whether my question is off-topic in this mailing list,
so forgive me first.


I am wondering if I can also install gcc-2.95, side by side with gcc-3.2, without any problems. Or do I have to remove gcc-3.2, before installing gcc-2.95. What will be the worst things to happen for this case?



You probably can't remove just one.  Make sure gcc is a symlink ("ls
-l /usr/bin/gcc").  Then switch it, "ln -sf /usr/bin/gcc-2.95
/usr/bin/gcc".

If you don't want to change your default compiler to gcc-2.95 permanently by setting the symlink you can set the environment variable CC=/usr/bin/gcc-2.95 for C-code and CXX=/usr/bin/g++-2.95 for C++-Code instead.
This is my preferred way for compiling projects with different compilers.

Yours,
Michael


--
------------------------------------------------------------
E-Mail: biebl@teco.edu
WWW: http://www.teco.edu/

TecO (Telecooperation Office) Vincenz-Priessnitz-Str.1
University of Karlsruhe 76131 Karlsruhe, Germany
------------------------------------------------------------



Reply to: