Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: gcc3.0.1

Author: Frank Phillips

Date: 06:01:05 10/07/01

Go up one level in this thread


On October 07, 2001 at 07:00:19, Steffen Jakob wrote:

>On October 07, 2001 at 05:21:26, Frank Phillips wrote:
>
>>Has anyone here got gcc3.0.1 working with Mandrake 8.1 (or other distribution).
>>I elected to install it along with gcc2.96 during the main install hoping for a
>>faster executable to close the gap on MSVC++,  but attempts to compile with it
>>seem to indicate is cannot find the C++ parts (libraries).
>
>Without seing the source code I can only guess.
>
>1. Did you include <iostream> (without ".h")?
>2. Did you use std::cin instead of cin?
>
>Older versions of g++ didnt follow the standard very well...
>
>Greetings,
>Steffen.
>

Steffen

Thanks.  It seems the C++ parts of the compiler package are not installed
automatically, since installing them makes gcc-3.0.1 the default.

Sadly, having installed it, it seems gcc3.0.1 produces a slightly slower
(4percent) executable of my program than gcc2.96. The gcc executable (under
Linux) is only 70 percent as fast as that produced by VC++, so I was hoping for
improvement.

gcc3.0.1 also gets upset about the nocreate in
file.open(filename,ios::in | ios::nocreate);
not being a member of std:basic_ios

Frank




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.