This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: R: Chossing the 'active' gcc version
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 17 Nov 2009 19:59:26 +0000
- Subject: Re: R: Chossing the 'active' gcc version
- References: <847781.93339.qm@web25508.mail.ukl.yahoo.com>
Marco Atzeri wrote:
> -- Mar 17/11/09, John Cortell ha scritto:
>
>> I installed cygwin with the development tools package and I got two
>> versions of gcc (3.x and 4.x). In a cygwin shell, when I type 'gcc
>> --version', I see that 3.x is the default. I also see that the mapping of
>> the version-less commands to the 3.x version is done through a series of
>> links.
>>
>> I've googled this to death and can't find an answer. There's got to be an
>> easy way to switch over those links to refer to 4.x, no? Some script or
>> tool that handles changing all the links?
>>
>
> man alternatives
>
> for seeing current settings: $/usr/sbin/alternatives --display gcc
OP didn't say which version of gcc-4 is in use, but if it's 1.7's
gcc4-4.3.4-1, then "set-gcc-default-3.sh" or "set-gcc-default-4.sh" should do
the job.
cheers,
DaveK
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple