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> 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" wrote: >kevin.dickerson[atnospam]@ntlworld.com (Kevin Dickerson) wrote in >news:3c47248f DOT 7781706 AT news DOT ntlworld DOT com: > >> #include >> #include >> #include > >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 >#include > > >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.