Mail Archives: djgpp/1998/07/24/14:00:43
From: | Allens <allen DOT asjp AT cableol DOT co DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: iostream.h
|
Date: | Fri, 24 Jul 1998 18:23:58 +0100
|
Organization: | Cable Online
|
Lines: | 34
|
Message-ID: | <35B8C32E.3524@cableol.co.uk>
|
References: | <000501bdb658$05418840$8f4d08c3 AT arthur>
|
NNTP-Posting-Host: | 194.168.181.48
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Arthur wrote:
>
> >Hi there !
> >
> >I've written a proggy with in it:
> >
> >#include<iostream.h>
> >int main(void)
> >{
> >cout >> "Hello world";
> >return 0;
> >}
> >
> >then i type
> >
> >GCC proggy.cpp -o proggy.exe
> >
> >and GCC return an error, he can't find streambuf.h included in
> >iostream.h, but I HAVE THIS FILE IN ./lang/cxx/ !!!!!!
> >
> >What can i do ?
>
> gcc is the GNU C Compiler. iostream.h is a C++ file, so you need to use gpp
> or gxx instead. You can use the iostream files with gcc, and I'm sure that
> the many other replies to this message will explain how, but it's easier to
> use gxx.
>
> James Arthur
> jaa AT arfa DOT clara DOT net
The problem with not finding streambuf.h was that you need to set lfn=y
in dos, or rather unwisely in your djgpp.env file.
Peter Alleh
- Raw text -