Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: gcc3.0.1

Author: Alexander Kure

Date: 12:28:48 10/07/01

Go up one level in this thread


On October 07, 2001 at 11:07:46, Steffen Jakob wrote:

>On October 07, 2001 at 09:01:05, Frank Phillips wrote:
>
>>Thanks.  It seems the C++ parts of the compiler package are not installed
>>automatically, since installing them makes gcc-3.0.1 the default.
>
>Yes, you have to enable other languages explicitly:
>
>./configure --enable-languages=c,c++
>
>>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
>
>Valid members of std::ios_base::openmode, which is the type of the 2nd parameter
>of std::ifstream, are std::ios_base::app, std::ios_base::ate,
>std::ios_base::binary, std::ios_base::in, std::ios_base::out,
>std::ios_base::trunc. So nocreate isnt part of the standard.
>
>Greetings,
>Steffen.


Right Steffen.
But Frank's code relied on the old - now deprecated - iostream headers (the ones
with .h). There ios::nocreate still is valid. Seems to me that he has a mixture
of old and new iostreams.

Greetings
Alex



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.