delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/04/02:18:09

From: Jeffrey <jeffrey AT spamhater DOT smartt DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Error: streambuf.h: No such file or director
Date: Fri, 03 Apr 1998 19:02:45 -0800
Organization: KTK Communications Ltd. (SmarttNet, http://www.smartt.com)
Lines: 84
Message-ID: <3525A2D3.9EE444CC@spamhater.smartt.com>
NNTP-Posting-Host: burn-mx05019.smartt.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

--------------EA22487301B4492F7869FE25
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,
    I am a newbie to C++ and using Djgpp, here I have a problem for you.

    As I am coding my first program to display a few words, I need the
routines "Cout" and "Cin" so I included the header iostream.h in my .cpp
file. Here is the full lines of my code.

    #include <iostream.h>

void main()
{
char Answer
Cout<< "Hello world?";
Cin >> Answer;
Cout << "This is what you have said" << "Answer";
}
    And then I got a error message c:\djgpp\lang\cxx\iostream.h(31)
Error: streambuf.h: No such file or director. I have never modified any
of the header files or any files under the Djgpp director. By the way,
this is the way my autoexec.bat looks like:
    set djgpp=C:\djgpp\djgpp.env
set path=c:\djgpp\bin;C:\WINDOWS;C:\WINDOWS\COMMAND
    I wish this is clear enough for you guys to point out where the
problem is, and I wish any of you can answer this for me.

--

Thanks
Jeffrey
---------------------------------
Please remove spamhater from the
reply address to respond
--------------------------------


--------------EA22487301B4492F7869FE25
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<HTML>
Hi,
<BR>&nbsp;&nbsp;&nbsp; I am a newbie to C++ and using Djgpp, here I have
a problem for you.
<BR>&nbsp;&nbsp;&nbsp; As I am coding my first program to display a few
words, I need the routines "Cout" and "Cin" so I included the header iostream.h
in my .cpp file. Here is the full lines of my code.

<P>&nbsp;&nbsp;&nbsp; <FONT COLOR="#FF0000">#include &lt;iostream.h></FONT><FONT COLOR="#FF0000"></FONT>

<P><FONT COLOR="#FF0000">void main()</FONT>
<BR><FONT COLOR="#FF0000">{</FONT>
<BR><FONT COLOR="#FF0000">char Answer</FONT>
<BR><FONT COLOR="#FF0000">Cout&lt;&lt; "Hello world?";</FONT>
<BR><FONT COLOR="#FF0000">Cin >> Answer;</FONT>
<BR><FONT COLOR="#FF0000">Cout &lt;&lt; "This is what you have said" &lt;&lt;
"Answer";</FONT>
<BR><FONT COLOR="#FF0000">}</FONT>
<BR>&nbsp;&nbsp;&nbsp; And then I got a error message c:\djgpp\lang\cxx\iostream.h(31)
Error: streambuf.h: No such file or director. I have never modified any
of the header files or any files under the Djgpp director. By the way,
this is the way my autoexec.bat looks like:
<BR>&nbsp;&nbsp;&nbsp; <FONT COLOR="#FF0000">set djgpp=C:\djgpp\djgpp.env</FONT>
<BR><FONT COLOR="#FF0000">set path=c:\djgpp\bin;C:\WINDOWS;C:\WINDOWS\COMMAND</FONT>
<BR>&nbsp;&nbsp;&nbsp; I wish this is clear enough for you guys to point
out where the problem is, and I wish any of you can answer this for me.

<P>--

<P>Thanks
<BR>Jeffrey
<BR>---------------------------------
<BR>Please remove spamhater from the
<BR>reply address to respond
<BR>--------------------------------
<BR>&nbsp;</HTML>

--------------EA22487301B4492F7869FE25--


- Raw text -


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