Mail Archives: djgpp/2002/07/17/15:15:23
> 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 -