delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/10/23:38:27

From: Harpua6081 AT aol DOT com
Message-ID: <88194f70.24b96ba3@aol.com>
Date: Sat, 10 Jul 1999 23:38:11 EDT
Subject: No "streambuf.h" file found in "iostream.h"?
To: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: AOL 4.0 for Windows 95 sub 13
Reply-To: djgpp AT delorie DOT com

To whom it may concern,

	I've been trying to learn C++. I got an intro book to it, "SAMS Teach 
Yourself C++ in 24 Hours." It's been going pretty good. I first got GNU GCC 
(Mingw32) as my compiler and was using Synedit as my IDE. The book gave a 
program to find out the size of variables with the compiler used and 
according to the computer used. It wouldn't work with the GNU GCC (Mingw32) 
compiler so I put DJGPP with RHIDE as my IDE that I got from the CD-ROM that 
came with the book. I re-wrote the program on RHIDE and tried to compile it. 
Here's what the message box says when I tried to compile the program (I 
called it list31.cpp):

Compiling: c:\djgpp\bin\list31.cpp

list31.cpp(2) In file included from list31.cpp:2:

c:\djgpp\lang\cxx\iostream.h(31) Error: streambuf.h: No such file or 
directory (ENOENT)

There were som errors


I put extra spaces inbetween each line of the messages so you would know that 
they were on the same line as it appeared to me. I did a little checking up 
on what the message could have meant. I opened up "iostream.h" and on line 31 
there's a header (sorry if it's the wrong term but I'm still learning) which 
says "#include <streambuf.h>"  I looked in the folder "c:\djgpp\lang\cxx\" 
and there was a "streambuf.h" I think I remember right when I assume that the 
compiler is supposed to look for these files for me and preprocess them in 
the program when I call for them. I have no idea what the problem could be. 
Here's the program I was trying to compile (list31.cpp):

// Determines the size of variable types on your computer
#include <iostream.h>  	/* here's the line where it said there was an error */

int main()
{
 cout << "The size of an int is:\t\t"      << sizeof(int)    << " bytes.\n";
 cout << "The size of a short int is:\t"   << sizeof(short)  << " bytes.\n";
 cout << "The size of a long int is:\t"    << sizeof(long)   << " bytes.\n";
 cout << "The size of a char is:\t\t"      << sizeof(char)   << " bytes.\n";
 cout << "The size of a bool is:\t\t"      << sizeof(bool)   << " bytes.\n";
 cout << "The size of a float is:\t\t"     << sizeof(float)  << " bytes.\n";
 cout << "The size of a double is:\t"      << sizeof(double) << " bytes.\n";

        return 0;
}


I'm not sure what else I can tell you that would help you understand the 
problem. I pretty much gave you all the info I can. I even tried to compile 
the program straight on the Windows 98 dos-box and got the same message. 
Please help me out.

Thanks,
Hans

- Raw text -


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