www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/24/20:46:20

Date: Fri, 25 Feb 2000 06:23:37 +0600 (LKT)
From: Kalum Somaratna aka Grendel <kalum AT crosswinds DOT net>
X-Sender: root AT darkstar DOT grendel DOT net
To: djgpp AT delorie DOT com
cc: phumphrey AT licor DOT com
Subject: Re: Hello World
In-Reply-To: <8625688F.0072245A.00@hooper2.licor.com>
Message-ID: <Pine.LNX.4.10.10002250611280.933-100000@darkstar.grendel.net>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


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