delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/20/09:40:31

From: "Roger" <Roger DOT Cazenave AT wanadoo DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Error SIGABRT with istream fonction seekg()
Date: 20 Apr 1999 14:14:55 GMT
Organization: Wanadoo, l'internet avec France Telecom
Lines: 19
Message-ID: <01be8b37$a7a31ea0$ae60fac1@default>
NNTP-Posting-Host: bbord1-1-174.abo.wanadoo.fr
X-Trace: wanadoo.fr 924617695 5907 193.250.96.174 (20 Apr 1999 14:14:55 GMT)
X-Complaints-To: abuse AT wanadoo DOT fr
NNTP-Posting-Date: 20 Apr 1999 14:14:55 GMT
X-Newsreader: Microsoft Internet News 4.70.1161
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Th error is produced when I'm debugging with RHIDE, but the program don't
run properly when I run the EXE.
I've no problem when I compile it.
Here is the source :
#include <fstream.h>

int main() {
 ifstream File;
 char c;

 File.open("Data"); //open an existing file
 cout << "Reading...";
 File >> c; //no problem
 File.seekg(ios::deb); // I want the 'cursor' to go to the beginning of the
file.
		       // Here I have the error SIGABRT

return 0;
}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019