www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/18/18:10:34

Xref: news-dnh.mv.net comp.os.msdos.djgpp:4524
From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++, DJGPP and Win95?
Date: Mon, 15 Jan 1996 10:26:16 CST
Organization: Rice University, Houston, Texas
Lines: 22
Message-ID: <30fa8028.sandmann@clio.rice.edu>
References: <4ddkl0$bia AT sol DOT sun DOT csd DOT unb DOT ca>
Reply-To: sandmann AT clio DOT rice DOT edu
NNTP-Posting-Host: clio.rice.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> try to compile them with DJGPP under Win95.  I get an error resembling
> iostream.h: streambuf.h: file doesn't exist.  I know the actual file is 
> named streambu.h because of DOS 8.3 limit.  I assume Win95 support for 
> long filename is causing this error.  I've checked iostream.h and it does 
> include <streambuf.h> which apparently get truncated under DOS to streambu.h.

There are a couple of potential fixes.

If you don't want to use Long File Names (LFNs), then at the command line
enter:  SET LFN=n
And this should turn off LFNs for the session.  If you never want to use 
LFNs, you can add this line to your djgpp.env file.

If you only plan to run under W95, and want to use LFNs, at the command
line enter: rename streambu.h streambuf.h  (and the same for any other 
long names you might encounter).  Under the default W95 setup this will
add some ugly numeric tail to the short name, which will mess up running
w/o W95 running.  There is a registry setting which suppresses the numeric
tail if the short name is unique.  If you set this setting and reboot,
you can then have your system such that either works well.  I don't have
the exact info here, but if you are interested I can post the details
on setting the registry value later.

- Raw text -


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