Deprecated Or Antiquated Header

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2008
Posts: 13
Reputation: DanDaMan is an unknown quantity at this point 
Solved Threads: 0
DanDaMan DanDaMan is offline Offline
Newbie Poster

Deprecated Or Antiquated Header

 
0
  #1
Nov 8th, 2008
I'm including these three files in my C++ program:

  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:

  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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1,678
Reputation: Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all Lerner is a name known to all 
Solved Threads: 263
Lerner Lerner is offline Offline
Posting Virtuoso

Re: Deprecated Or Antiquated Header

 
0
  #2
Nov 9th, 2008
use cstdio instead of stdio.h and iostream instead of iostream.h
Klatu Barada Nikto
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC