delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/02/09/17:28:16

From: Drew <drew AT drew DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: new install question for 3.21
Date: Sun, 09 Feb 2003 17:03:51 -0500
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <qrjd4vcm9vhl6s5q56ieql3e2kj1mrpb2a@4ax.com>
References: <be924vgv4req9m4ee22ag3qjm1gea2pqhk AT 4ax DOT com> <b1rb93$b5p$1 AT antares DOT lu DOT erisoft DOT se>
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
X-Complaints-To: abuse AT supernews DOT com
Lines: 67
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Thanks Thomas and Martin.  I did some reading up on the standard
namespace thing and I understand now.  Thank you both very much for
your responses!

I think I'll just convert the older programs to the standard c++
usage.

One additional question...what if I have a .h file that I wrote
myself...do I still include it as #include "foo.h"  or is it an
#include <foo>

Thanks!

Drew


On 5 Feb 2003 15:40:19 GMT, eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
wrote:

>Drew (drew AT drew DOT com) wrote:
>: I just upgraded from the old 2.72 version of DJGPP to the newest
>: version 3.21.
>
>You mean versions 2.7.2 and 3.2.1.
>
>That means you may need to upgrade your C++ code to C++ standard code.
>
>: All my exisiting C and C++ programs compile and run fine but I get an
>: information message that I never got before when I compile.
>
>: The message is:f
>
>: In file included from c:/djgpp/lang/cxx/3.21/backward/iostream.h:31,
>:                  from maketree.cpp:6:
>: c:/djgpp/lang/cxx/3.21/backward/backward_warning.h:32:2: warning:
>: #warning This
>: file includes at least one deprecated or antiquated header. Please
>: consider usin
>: g 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 <s
>: stream> instead of the deprecated header <strstream.h>. To disable
>: this warning
>: use -Wno-deprecated.
>
>
>: The program still runs fine....I'm just not sure how to correct this
>: message.  If I just say #include <iostream>, the compile generates
>
>That's how you correct it.
>
>: lots of errors as it doesn't find cout and the functions.
>
>Then you need to correct your program.
>
>: Should I just use the command flags to suppress it or what?
>
>1. Yes and hide the fact you're not using standard C++, or
>2. No and live with the warning or
>3. Use standard C++ and correct your program.
>
>
>Right,
>
>						MartinS

- Raw text -


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