From owner-freebsd-questions Tue Dec 14 13:34:44 1999 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (oe31.law4.hotmail.com [216.33.148.24]) by hub.freebsd.org (Postfix) with SMTP id B246014A05 for ; Tue, 14 Dec 1999 13:34:33 -0800 (PST) (envelope-from hpk104@hotmail.com) Received: (qmail 29840 invoked by uid 65534); 14 Dec 1999 21:34:33 -0000 Message-ID: <19991214213433.29839.qmail@hotmail.com> X-Originating-IP: [146.186.228.132] From: "Harris Kauffman" To: Cc: Subject: RE: Upgrading gcc properly Date: Tue, 14 Dec 1999 16:35:11 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01BF4651.3111AB00" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0005_01BF4651.3111AB00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm not sure about gcc-2.8.1, but when you install the latest = egcs(gcc-2.95.2) the port installs the executables into /usr/local/bin = followed by a major version number. So calling gcc or g++ would still = run the system default compiler, but typing something like "gcc295 = filename.c" or "g++295 filename.cc" will call the 2.95.2 version. ~Harris >What is the proper way to upgrade gcc? > >I tried installing the gcc28 port, but whenever I try to compile = anything >(I had to juggle my $PATH around to get it to use the proper binary) I = get >a whole bunch of parse errors, etc from files in /usr/inclide/g++ like >function.h, etc... I seem to remember doing this a long time ago and = there >was just one environment variable I had to set or one configure option >I had to change to get it to work...can someone clue me in? :) > >Thanks, >Paul > >--=20 >=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D >Paul D. Schmidt = >UNIX Systems Programmer FreeBSD = Advocate >"Trust the computer industry to shorten 'Year 2000' to 'Y2K.' It was = this >kind of thinking that caused the problem in the first place." = -Anonymous >=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D ------=_NextPart_000_0005_01BF4651.3111AB00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I'm not sure about gcc-2.8.1, but when you install the latest=20 egcs(gcc-2.95.2) the port installs the executables into /usr/local/bin = followed=20 by a major version number.  So calling gcc or g++ would still run = the=20 system default compiler, but typing something like "gcc295 filename.c" = or=20 "g++295 filename.cc" will call the 2.95.2 version.
 
~Harris
 
>What is the proper way to upgrade gcc?
>
>I tried installing the gcc28 port, but whenever I try to = compile=20 anything
>(I had to juggle my $PATH around to get it to use the proper = binary) I=20 get
>a whole bunch of parse errors, etc from files in = /usr/inclide/g++=20 like
>function.h, etc...  I seem to remember doing this a long = time ago=20 and there
>was just one environment variable I had to set or one configure = option
>I had to change to get it to work...can someone clue me in?=20 :)
>
>Thanks,
>Paul
>
>--
>=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D
>Paul D.=20 Schmidt           =             &= nbsp;           &n= bsp;     =20 <pds@uberhacker.org>
>UNIX Systems=20 Programmer          &nb= sp;           &nbs= p;            = ; =20 FreeBSD Advocate
>"Trust the computer industry to shorten 'Year 2000' to = 'Y2K.'  It=20 was this
>kind of thinking that caused the problem in the first place."=20 -Anonymous
>=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D


------=_NextPart_000_0005_01BF4651.3111AB00-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message