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

Re: Changing the default compiler



On Thu, Jun 13, 2002 at 02:15:04AM -0700, ian wrote:
> i would like to know how to change my default gcc compiler from the current 
> version to another.

Install the other version (packaged as gcc-3.0, gcc-3.1, etc.), and set
CC=gcc-3.1 and CXX=g++-3.1.

It is possible to change the symlinks /usr/bin/gcc, /usr/bin/g++, and so
on, to point to something else, but since those will be overwritten on
package updates you might be better creating symlinks in ~/bin and
adding that directory to the front of your $PATH.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: