delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/10/00:20:11

Date: Mon, 9 Mar 1998 15:48:52 -0800 (PST)
Message-Id: <199803092348.PAA11501@adit.ap.net>
Mime-Version: 1.0
To: "Yeeming Jih" <yjih AT erols DOT KINDLYREMOVE DOT com>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Error: streambuf.h: no such file...

At 10:16  3/7/1998 -0500, Yeeming Jih wrote:
>I downloaded these files and unzipped them (with directories intact):
>
>djdev201.zip
>bnu281b.zip
>faq210b
>
>gcc280b
>gpp280b
>lgpp280b
>
>rhide14b
>
>I also set DJGPP=C:\DJGPP\DJGPP.ENV and PATH=C:\DJGPP\BIN; in autoexec.bat.
>After I installed them I tried to compile the classic "Hello, world!"
>program:
>
>#include <iostream>
>
>int main()
>{
>        cout << "Hello, world!\n"
>}
>
>
>I got these error message:

[snipped]

Three things:

1. I think the header is called <iostream.h>.
2. You need to use the `gxx' command instead of `gcc' when linking C++ files.
3. If you name your file ending in `.cc', you will avoid a bug that would
keep you from debugging.


Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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