Date: Tue, 14 Dec 1999 16:35:11 -0500 From: "Harris Kauffman" <hpk104@hotmail.com> To: <pds@uberhacker.org> Cc: <questions@freebsd.org> Subject: RE: Upgrading gcc properly Message-ID: <19991214213433.29839.qmail@hotmail.com>
next in thread | raw e-mail | index | archive | help
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 = <pds@uberhacker.org> >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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2721.2900" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2> <DIV> <DIV>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.</DIV> <DIV> </DIV> <DIV>~Harris</DIV> <DIV> </DIV> <DIV>>What is the proper way to upgrade gcc?</DIV>><BR> <DIV>>I tried installing the gcc28 port, but whenever I try to = compile=20 anything</DIV> <DIV>>(I had to juggle my $PATH around to get it to use the proper = binary) I=20 get</DIV> <DIV>>a whole bunch of parse errors, etc from files in = /usr/inclide/g++=20 like</DIV> <DIV>>function.h, etc... I seem to remember doing this a long = time ago=20 and there</DIV> <DIV>>was just one environment variable I had to set or one configure = option</DIV> <DIV>>I had to change to get it to work...can someone clue me in?=20 :)</DIV>><BR> <DIV>>Thanks,</DIV> <DIV>>Paul</DIV>><BR> <DIV>>-- </DIV> <DIV>>=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</DIV> <DIV>>Paul D.=20 Schmidt = &= nbsp; &n= bsp; =20 <pds@uberhacker.org></DIV> <DIV>>UNIX Systems=20 Programmer &nb= sp; &nbs= p;  = ; =20 FreeBSD Advocate</DIV> <DIV>>"Trust the computer industry to shorten 'Year 2000' to = 'Y2K.' It=20 was this</DIV> <DIV>>kind of thinking that caused the problem in the first place."=20 -Anonymous</DIV> <DIV>>=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</DIV><BR><BR></DIV></FONT></DIV></BODY></HTML> ------=_NextPart_000_0005_01BF4651.3111AB00-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991214213433.29839.qmail>