delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/10/11/08:15:15

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Per" <wga955m AT tninet DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: problems after installation with #include <iostream.h>
Date: Wed, 6 Oct 2004 15:09:10 +0200
Lines: 40
Message-ID: <ck0q2b$771$1@yggdrasil.glocalnet.net>
NNTP-Posting-Host: du-63-231.ppp.telenordia.se
X-Trace: yggdrasil.glocalnet.net 1097067403 7393 62.127.63.231 (6 Oct 2004 12:56:43 GMT)
X-Complaints-To: abuse AT glocalnet DOT net
NNTP-Posting-Date: 6 Oct 2004 12:56:43 GMT
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello!

I've jus installed djgpp under windows 98.

I'll get the following error trying to compile c++.
It works fine with c.

Does anyone knows what the provlem is?

//Per



/* This is a program*/
#include <iostream.h>
int main(void)
{
  cout << "HelloWorld!\n";
  return 0;
}


C:\cbl\lab>gpp -o hello.exe hello.cc
In file included from
c:/djgpp/bin/../lib/gcc/djgpp/3.42/../../../../include/cxx
/3.42/backward/iostream.h:31,
                 from hello.cc:2:
c:/djgpp/bin/../lib/gcc/djgpp/3.42/../../../../include/cxx/3.42/backward/bac
kwar
d_warning.h:32:2: warning: #warning This file includes at least one
deprecated o
r antiquated header. Please consider using one of the 32 headers found in
sectio
n 17.4.1.2 of the C++ standard. Examples include substituting the <X> header
for
 the <X.h> header for C++ includes, or <iostream> instead of the deprecated
head
er <iostream.h>. To disable this warning use -Wno-deprecated.


- Raw text -


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