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
[-- Attachment #1 --] 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 > >-- >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= >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 >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> <META content="MSHTML 5.00.2721.2900" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2> <DIV> <DIV>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.</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 anything</DIV> <DIV>>(I had to juggle my $PATH around to get it to use the proper binary) I get</DIV> <DIV>>a whole bunch of parse errors, etc from files in /usr/inclide/g++ like</DIV> <DIV>>function.h, etc... I seem to remember doing this a long time ago 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? :)</DIV>><BR> <DIV>>Thanks,</DIV> <DIV>>Paul</DIV>><BR> <DIV>>-- </DIV> <DIV>>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=</DIV> <DIV>>Paul D. Schmidt <pds@uberhacker.org></DIV> <DIV>>UNIX Systems Programmer FreeBSD Advocate</DIV> <DIV>>"Trust the computer industry to shorten 'Year 2000' to 'Y2K.' It was this</DIV> <DIV>>kind of thinking that caused the problem in the first place." -Anonymous</DIV> <DIV>>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=</DIV><BR><BR></DIV></FONT></DIV></BODY></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991214213433.29839.qmail>
