Mail Archives: djgpp/2000/02/24/20:46:20
On Thu, 24 Feb 2000, Pat Humphrey wrote:
> gcc -c -Wall Hello.cpp
>
> The resultant error message I received was:
>
> In file include form Hello.cpp:1:
> c:/djgpp/lang/cxx/iostream.h:31: streambuf.h: No such file or directory
> (ENOENT)
>
> I'm not sure what's going on. The include file "streambuf.h" is located
> in the same directory as "iostream.h". I checked the autoexec.bat file
> and it has been updated per the required settings:
I don't have the sams book with me but..
streambuf.h is in the 9+3 format where as iostream.h is in the 8.3 format.
So streambuf.h is a long file name.
What I think the problem is that when your instaled the djgpp compiler
strealbuf.h was stored as stream~1.h or some thing like that.
Are you compiling from a Dos Box (ie is it running under windows) or have
you restarted the computer in ms-dos mode (native ms-dos) and then trying
to compile? Because if the streambuf.h is stored as stream~1.h then the
compiler would be unable to acess it when run under native dos (since the
LFN support is not present when running under native dos). That could
explain your error.
So why don't you try compileing under a dos box in windows and see whether
you get the same problem.
Section 8.3 of the DJGPP FAQ has more info about other ways in which this
problem could be caused so It would be nice if you could have a look there
too. It can be downloaded from simtelnet or there is a online version
available at <http://www.delorie.com>
>
> I'm not sure how the compiler was able to find "iostream.h" and not
> "streambuf.h". Does the config.sys file need something in it as well?
> Presently it basically has nothing. Your insights would be greatly
No, I don;t think the config.sys has anything to do with your problem.
Your problem sounds like a Long file name problem.
Regards,
Grendel
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)
- Raw text -