Mail Archives: djgpp/1998/08/28/13:41:16
On 27 Aug 98 at 22:04, Meola111 AT aol DOT com wrote:
> [HELLO.C]
> #include <iostream.h>
> #include <stdio.h>
>
> int main()
> {printf("Hello World");
> return 0;}
>
> When i type the previous code in i get an error like so:
> Hello.c(1)Error: can't find file iostream.h
>
> Why doesnt RHIDE find iostream.h even though its in D:/DJGPP/include folder?
iostream.h is a C++ header file. Last time I used a C++ compiler
(v2.7.2.1) the C++ header files were not stored in the `include'
directory. They're stored elsewhere and to access them you must be
doing a C++ compilation; that means either renaming the file to
"hello.cc" or "hello.cpp", or specifying explicitly what language it
is in with a command line switch to gcc (RHIDE probably supports this
but I don't know how).
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -