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

Re: setting default compiler version



On 5/11/05, Martin Henne <martin.henne@web.de> wrote:
> Is there a way to tell debian to use g++-3.4 as the default
> compiler and set all symlinks (at least /usr/bin/gcc, /usr/
> bin/g++ and /usr/lib/cpp) to the right version using the
> normal dpkg tools (like dpkg-reconfigure or something like
> that)?

Check out update-alternatives, which sets up symlinks in
/etc/alternatives that are then referenced by other symlinks in
/usr/bin.  The "alternative" you'll most likely want is c++,
and you'd refer to the compiler as /usr/bin/c++ .

-- 
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com



Reply to: