delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/22/14:30:24

From: "Pat Ritchie" <pritchie AT logikos DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Autodependencies and long filenames with Windows NT.
Date: Thu, 22 Jun 2000 13:12:31 -0500
Organization: Sysnet InterNetNews site
Lines: 24
Message-ID: <8itler$o4d$1@news.sysnet.net.tw>
NNTP-Posting-Host: pritchie.logikos.com
X-Trace: news.sysnet.net.tw 961698075 24717 209.84.102.142 (22 Jun 2000 18:21:15 GMT)
X-Complaints-To: usenet AT news DOT sysnet DOT net DOT tw
NNTP-Posting-Date: 22 Jun 2000 18:21:15 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

When using the -MM option, to create dependencies, and an include filename
is not in dos 8.3 format, I get an error stating the filename does not
exist. If I shorten the filename, it works as expected (see example below).
I am running Windows NT and I have LFN=y. Changing all the customer's source
files is not a desirable option. Are there any other suggestions?
Thanks, pritchie AT logikos DOT com

First Example - Fails:
    gcc -MM test.c
    test.c:1: longfilename.h: No such file or directory (ENOENT)

Second Example - Passes:
    gcc -MM test.c
    test.o: test.c filename.h

The test.c file contains only a single line of code:
First Example -
    #include "longfilename.h"
Second Example -
    #include "filename.h"

Both files, longfilename.h and filename.h exist in the current directory.


- Raw text -


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