delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/17/11:16:16

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Thomas8675309 AT yahoo DOT com (Tom)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Can't delete executables made by DJGPP
Date: 17 Nov 2003 08:12:57 -0800
Organization: http://groups.google.com
Lines: 38
Message-ID: <7b68d58f.0311170812.6b1c502a@posting.google.com>
References: <a8587dd9 DOT 0311161132 DOT 2fbb6c5e AT posting DOT google DOT com> <9787-Sun16Nov2003225129+0200-eliz AT elta DOT co DOT il> <a8587dd9 DOT 0311162207 DOT 510be1fb AT posting DOT google DOT com>
NNTP-Posting-Host: 63.72.148.162
X-Trace: posting.google.com 1069085577 3740 127.0.0.1 (17 Nov 2003 16:12:57 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Mon, 17 Nov 2003 16:12:57 +0000 (UTC)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

cmad_x AT yahoo DOT com (Chris Mantoulidis) wrote:

[snip ]

> hmm... i get another warning, and i still get it (i forgot to say
> about it above): "this file includes at least one deprecated or
> antiqued header. Please consider using one the 32 headers found in the
> section 17.4.1.2 section of the C++ standard. Examples include
> substituting the <X> header for the <X.h> header for C++ includes, or
> <stream> instead of the deprecated header <strstream.h>. To disable
> this warning use ...." (some arguments)
> 
> y does the above mean? only header i used was <iostream.h>............

Chris, I don't mean to be a smart-a**, but, uhhmmm, did you read the
warning?  Look at the third sentence:  "Examples include substituting
the <X> header for the <X.h> header for C++ includes, or <sstream>
instead of the deprecated header <strstream.h>."  Does that answer
your question?

If not, take a look at Section 27.4 of the C++ FAQ:

http://www.parashift.com/c++-faq-lite/coding-standards.html#faq-27.4

In short, since 1998, headers like <iostream.h> have been nonstandard.
 The correct header - as the warning message you reprinted says - is
<iostream>.  Going along with this change, all functions, classes, and
objects from the standard library now reside in namespace std.  If you
have no idea what that means, you really need to get a more up to date
C++ book - try Accelerated C++ by Koenig and Moo if you're learning
the language, or The C++ Programming Language (3d ed. or special
ed.)by Stroustrup as a reference.

Out of curiousity, what book were you using?

Best regards,

Tom

- Raw text -


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