delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | kevin.dickerson[atnospam]@ntlworld.com (Kevin Dickerson) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: File bad() problem - bug in djgpp or is it me??? |
Message-ID: | <3c474cca.18082698@news.ntlworld.com> |
References: | <3c47248f DOT 7781706 AT news DOT ntlworld DOT com> <Xns9199ABC611E1AASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> |
X-Newsreader: | Forte Free Agent 1.21/32.243 |
Lines: | 32 |
Date: | Thu, 17 Jan 2002 22:26:56 GMT |
NNTP-Posting-Host: | 213.107.232.136 |
X-Complaints-To: | abuse AT ntlworld DOT com |
X-Trace: | news6-win.server.ntlworld.com 1011306395 213.107.232.136 (Thu, 17 Jan 2002 22:26:35 GMT) |
NNTP-Posting-Date: | Thu, 17 Jan 2002 22:26:35 GMT |
Organization: | ntlworld News Service |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On 17 Jan 2002 21:53:13 GMT, "A. Sinan Unur" <asu1 AT cornell DOT edu> wrote: >kevin.dickerson[atnospam]@ntlworld.com (Kevin Dickerson) wrote in >news:3c47248f DOT 7781706 AT news DOT ntlworld DOT com: > >> #include<iostream.h> >> #include<fstream.h> >> #include<string.h> > >use the new style headers, especially when it comes to string. string.h >and string are very different (in C++, string.h corresponds to cstring, >AFAIK). > >that said, I can't replicate your problem (with djgpp v.2.03 and gcc >2.95.3). > >the code below incorporates my suggested modifications. it also exhibits >the desired behavior: > >C:\var>cat fs.cc >#include<iostream> >#include<fstream> > > >C:\var>fs >Error: Could not open the file >1 I tried that thanks. I did a striaght copy & paste, but it still came up with the same results as I had before. djgpp is 2.03 & gcc 3.0.3 as per the latest zip picker. Any other ideas? is it worth getting hold of an earlier version of gcc.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |