Mail Archives: djgpp/1999/04/29/00:34:38
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 -