From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30386 invoked by alias); 1 Oct 2002 18:04:36 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 30371 invoked from network); 1 Oct 2002 18:04:35 -0000 Received: from unknown (HELO lars.boxcarmedia.com) (209.213.0.162) by sources.redhat.com with SMTP; 1 Oct 2002 18:04:35 -0000 Received: from josh (unknown [209.213.12.200]) by lars.boxcarmedia.com (Postfix) with SMTP id E1343122DC7 for ; Tue, 1 Oct 2002 14:04:34 -0400 (EDT) Message-ID: <000b01c26974$ff6f6b10$c800a8c0@pdc1.boxcarmedia.com> From: "Joshua Nye" To: References: <3D99D2B9.7090603@umontreal.ca> <200210011958.12731.sebastian-huber@web.de> Subject: Re: rewind a file Date: Tue, 01 Oct 2002 11:04:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2002-10/txt/msg00010.txt.bz2 This program compiles and runs fine with g++ 3.2. #include using namespace std; int main() { cout << ios::beg; return 0; } Maybe you need the 'using namespace std;' in there? --josh ----- Original Message ----- From: "Sebastian Huber" To: Sent: Tuesday, October 01, 2002 10:58 PM Subject: Re: rewind a file Hello, I'm not absolutely sure about that, but I guess that 'ios' is not standard conform. You should try 'ios_base'. On Tuesday 01 October 2002 09:52, Philippe Despres wrote: > Hello, > > I used to rewind a ifstream file with > > file.seekg(0,ios::beg); > file.clear(); > > to read it a second time. It was under gcc 2.9x. Now I upgrade to > mandrake 9.0, which ships gcc 3.2 and it is not working anymore... any > hint? > > Thanks > > Philippe