943,670 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 5206
  • C++ RSS
Nov 8th, 2008
0

Deprecated Or Antiquated Header

Expand Post »
I'm including these three files in my C++ program:

C++ Syntax (Toggle Plain Text)
  1. #include <stdio.h>
  2. #include <cstdlib>
  3. #include <iostream.h>

The C++ compiler I am using (Dev-C++ 4.9.9.2) Allows me to run this program. but I still receive an error message saying:

C++ Syntax (Toggle Plain Text)
  1. #warning This file includes at least one deprecated or antiquated header. \
  2. Please consider using one of the 32 headers found in section 17.4.1.2 of the \
  3. C++ standard. Examples include substituting the <X> header for the <X.h> \
  4. header for C++ includes, or <iostream> instead of the deprecated header \
  5. <iostream.h>. To disable this warning use -Wno-deprecated.

Why is this happening and how can I stop it? Thanks in advance.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
DanDaMan is offline Offline
13 posts
since Jul 2008
Nov 9th, 2008
0

Re: Deprecated Or Antiquated Header

use cstdio instead of stdio.h and iostream instead of iostream.h
Reputation Points: 718
Solved Threads: 373
Nearly a Posting Maven
Lerner is offline Offline
2,253 posts
since Jul 2005
Sep 17th, 2011
0
Re: Deprecated Or Antiquated Header
i also had the same pblm and when i used cstdio instead of <stdio.h>,still the compiler was showing error.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
NITHIN VIJAY is offline Offline
1 posts
since Sep 2011
Sep 17th, 2011
0
Re: Deprecated Or Antiquated Header
What compiler are you using?
Reputation Points: 215
Solved Threads: 186
Veteran Poster
NathanOliver is offline Offline
1,066 posts
since Apr 2009
Sep 17th, 2011
0
Re: Deprecated Or Antiquated Header
iostream.h is obsolete. use <iostream> instead (notice there is no .h extension).
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,949 posts
since Aug 2005
Sep 17th, 2011
0
Re: Deprecated Or Antiquated Header
You can replace all three headers with
#include <iostream>
Reputation Points: 6
Solved Threads: 0
Newbie Poster
wavsyntax is offline Offline
8 posts
since May 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: CUI Communication
Next Thread in C++ Forum Timeline: How to write a summation in a sequence?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC