On Thu, Jan 17, 2013 at 03:57:48PM +0100, Janne Johansson wrote: > 2013/1/17 WANG Siyuan <wangsiyuanb...@gmail.com>: > > Hi, > > > > I install gcc 4.7 on openbsd using pkg_add. after installation, I use > > 'gcc -v' to check, I found it is also gcc 4.2 ! > > how to upgrade gcc 4.2 to gcc 4.7 on openbsd? thank you! > > The non-system gcc ends up in /usr/local/bin > Edit your PATH accordingly. > And don't compile the base system with the non-system compiler.
You don't need to edit your PATH. The GCC 4.7 binaries are installed as egcc / eg++. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.