how to upgrade gcc 4.2.1 to gcc-4.7.1

2013-01-17 Thread WANG Siyuan
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!


--
Yours sincerely,
WANG Siyuan



Re: how to upgrade gcc 4.2.1 to gcc-4.7.1

2013-01-17 Thread Janne Johansson
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.

-- 
May the most significant bit of your life be positive.



Re: how to upgrade gcc 4.2.1 to gcc-4.7.1

2013-01-17 Thread Ville Valkonen
On 17 January 2013 16:29, WANG Siyuan wangsiyuanb...@gmail.com wrote:
 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!


 --
 Yours sincerely,
 WANG Siyuan

Hi,

packages/ports gcc is renamed to egcc that it won't be mixed up to
system's gcc. Therefore, /usr/local/bin/ecpp is one that you want. And
no, you DON'T want to replace system's gcc.

--
Sincerely,
Ville Valkonen



Re: how to upgrade gcc 4.2.1 to gcc-4.7.1

2013-01-17 Thread Brad Smith
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.



Re: how to upgrade gcc 4.2.1 to gcc-4.7.1

2013-01-17 Thread Daniel Bolgheroni
On Thu, Jan 17, 2013 at 10:29:16PM +0800, WANG Siyuan wrote:
 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 !

Try egcc -v.




Re: how to upgrade gcc 4.2.1 to gcc-4.7.1

2013-01-17 Thread WANG Siyuan
Thank you!
I just want to build a software on openbsd.

On Thu, Jan 17, 2013 at 10:58 PM, Ville Valkonen weezeld...@gmail.com wrote:
 On 17 January 2013 16:29, WANG Siyuan wangsiyuanb...@gmail.com wrote:
 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!


 --
 Yours sincerely,
 WANG Siyuan

 Hi,

 packages/ports gcc is renamed to egcc that it won't be mixed up to
 system's gcc. Therefore, /usr/local/bin/ecpp is one that you want. And
 no, you DON'T want to replace system's gcc.

 --
 Sincerely,
 Ville Valkonen



--
Yours sincerely,
WANG Siyuan