delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/10/24/14:08:46

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <20031024174054.91830.qmail@web41507.mail.yahoo.com>
Date: Fri, 24 Oct 2003 10:40:54 -0700 (PDT)
From: Jason Champion <xangis AT yahoo DOT com>
Subject: Deprecated iostream.h trouble
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

This is the problem I'm trying to resolve:
----
In file included from c:/djgpp/lang/cxx/3.31/backward/iostream.h:31,
                          From zone/writezon.cpp:10
C:/djgpp/lang/cxx/3.31/backward/backward_warning.h:32:2: warning: #warning This
file includes at least one deprecated or antiquated header.  Please consider using
one of the 32 headers found in section 17.4.1.2 of the C++ standard.  Examples
include substituting the <X> header for the <X.h> header for C++ includes or
<sstream> instead of the deprecated header <strstream.h>.  To disable this warning
use –Wno-deprecated.
----

Changing the #include to reference <iostream> instead of <iostream.h> gives the
following error:

Writezon.cpp:299: error: ‘cout’ undeclared (first use this function)
Writezon.cpp:299: error: (Each undeclared identifier is reported only once)

I see right in the iostream include that it defines the cout function.  Is there
some other include I need to add or some additional library I need to link to in
order for this to work without errors?  Cout isn’t exactly an obscure function…

I seem to get strange text display glitches on occasion and I suspect that dealing
with this might help.  At the very least clearing up the warning would give me some
peace of mind.

If you can offer any help or suggestions I'd appreciate it.

Thanks,
Xangis


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

- Raw text -


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