cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/28/13:41:16

Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: Meola111 AT aol DOT com
Date: Fri, 28 Aug 1998 18:39:28 +0000
MIME-Version: 1.0
Subject: Re: RHIDE and iostream.h
Reply-to: george DOT foot AT merton DOT oxford DOT ac DOT uk
CC: djgpp AT delorie DOT com
Message-Id: <E0zCSWC-0003mm-00@sable.ox.ac.uk>

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 -


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