Mail Archives: djgpp/2002/07/30/00:50:21
"WHITING, Edward" <EWHITI03 AT igs DOT vic DOT edu DOT au> wrote in
news:F6A2704E4FFE1641900478953444A5EA0F2A78 AT minnie DOT igs DOT vic DOT edu DOT au:
> I am using the GCC compiler, with RHIDE as the front end program. I
> like it very much, however, when I try to compile a very simple C++
> program, GCC sends an error message saying that it cannot find
> streambuf.h, which iostream.h needs. There is a copy of streambuf.h in
> the "include" folder as well as the "lang" folder, where iostream.h is
> located. I receive the message saying "error: streambuf.h: No such
> file or directory (ENOENT)". Do you have any suggestions?
you neglected to mention some key information such as the version of gcc
you are using and the platform you are using.
did you extract the files in windows 9x using something like winzip? if
so, the short name of streambuf.h would be something like streamb~1.h.
that might cause problems if you then run gcc in plain DOS (as opposed to
the command prompt).
note that the old-style headers are now deprecated. you should use
<iostream> rather than <iostream.h>, and explicitly pull in the names
from the std namespace (esp if you are using gcc 3.x, but still good
practice even with the older versions).
without some more information, there isn't much else that comes to my
mind. did you try compiling the same file from the command line? what is
the extension of your source file?
Sinan.
--
A. Sinan Unur
asu1 AT c-o-r-n-e-l-l DOT edu
Remove dashes for address
Spam bait: mailto:uce AT ftc DOT gov
- Raw text -