delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/27/22:10:49

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: #include problems under DOS
Date: Tue, 27 Apr 1999 14:16:49 -0300
Organization: BrunNet
Lines: 34
Message-ID: <3725F101.9CD62B2B@unb.ca>
References: <7g2p8i$j1v AT dfw-ixnews3 DOT ix DOT netcom DOT com> <37252C51 DOT 6D8D4046 AT unb DOT ca> <7g3i75$ffr AT dfw-ixnews10 DOT ix DOT netcom DOT com>
NNTP-Posting-Host: ftnts2c9.brunnet.net
Mime-Version: 1.0
X-Mailer: Mozilla 4.04 [en] (Win95; U)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Ofer Nave wrote:

> >    If you are running under Pure Dos or NT, then LFN will not work and you
> >should install DJGPP using a 16-bit zip program, or rename the files
> >"streambuf.h" -> "streambu.h" and such.
>
> That means I have to go into each header file and change the include
> statements.  In other words, I have to edit "iostream.h" so that instead of
> "#include <streambuf.h>" it will say "#include <streambu.h>".
>
> That's a lot of work.  It seems like this problem would be too common to
> have been left unsolved this long.  Afterall, DJGPP is a compiler for *DOS*,
> which does not support more than 8.3.  Why weren't the headers written with
> this in mind?
>
> If there's some point I'm missing, please enlighten me.  Afterall, I'm
> fairly new to DJGPP.

    You don't have to edit anything.  If LFN is disabled, and you try to include
a file like "1234567890123.h", DJGPP will truncate the file to 8.3 and open
"12345678.h".  So all you need to do is ensure that you have LFN working OR
ensure that all of the names of the files are simple truncations of their LFN
equivalents (this is usually done by most 16-bit unzip programs).

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT BrunNet DOT Net
          Endlisnis AT HotMail DOT com
          ICQ: 32959047




- Raw text -


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