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                                  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to