delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/29/00:34:38

From: "Ofer Nave" <odigity AT ix DOT netcom DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: #include problems under DOS
Date: Wed, 28 Apr 1999 12:47:39 -0700
Organization: Netcom
Lines: 65
Message-ID: <7g7orj$p7g@sjx-ixn6.ix.netcom.com>
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> <3725F101 DOT 9CD62B2B AT unb DOT ca>
NNTP-Posting-Host: lai-ca4-10.ix.netcom.com
X-NETCOM-Date: Wed Apr 28 12:51:15 PM PDT 1999
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Okay, reinstalled everything under pure dos, set lfn=n, no problem.

I'm still having a problem with absolute paths, though.  The following
works:

#include "file.ext"
#include "/file.ext"
#include "../dir/file.ext"

But the minute I add a subdirectory to an absolute path:

#include "/dir/file.ext"

It doesn't find the file.

Also, is there a file somewhere in which I can list a dozen or so include
directories to look in, and avoid supplying paths in the source code
altogether?

-Ofer


Endlisnis wrote in message <3725F101 DOT 9CD62B2B AT unb DOT ca>...
>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