www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/17/15:15:23

Date: Wed, 17 Jul 2002 21:11:03 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Diogo Abdalla" <mollsem AT hotmail DOT com>
Message-Id: <3405-Wed17Jul2002211102+0300-eliz@is.elta.co.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <F5AQcikgOAGQ1WgvWX900013918@hotmail.com> (mollsem@hotmail.com)
References: <F5AQcikgOAGQ1WgvWX900013918 AT hotmail DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Diogo Abdalla" <mollsem AT hotmail DOT com>
> Date: Wed, 17 Jul 2002 05:49:18 +0000
> 
> Well, following the instructions of a tutorial I wrote, in Rhide, this 
> little code:
> 	#include <iostream.h>
> 	int main()
> 	{
> 	cout << "Hello!";
> 	return 0;
> 	}
> Then the nightmare begun. I got an error saying that the compiler could not 
> find iostream.h. Ive searched my HD for the file and found it on 
> djgpp\lang\cxx-v31\backward\. Then I copied the file to djgpp\include (I was 
> supposed to do that?) and tried it again. This time, the compiler found 
> iostream.h, but it gave me an error saying that the file contains one or 
> more "deprecated" headers (What means "deprecated", anyway? ).

Did you per chance named your source file something.c?  If so, rename
the file so that it has a .cc or .cpp extension.  The FAQ explains
that GCC decides what language is your program written in by looking
at the file-name's extension, and what you describe seems to indicate
that GCC thinks it's a C program, not a C++ program.

- Raw text -


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