delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/10/10:26:09

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <3C6675E2.D9F792E1@student.uu.se>
Date: Sun, 10 Feb 2002 14:30:10 +0100
From: Sven Sandberg <svsa1977 AT student DOT uu DOT se>
X-Mailer: Mozilla 4.79 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: another gcc 3.03 dependency question
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020210135041 DOT 15572M-100000 AT is>
NNTP-Posting-Host: regulus2.student.uu.se
X-Trace: puffinus.its.uu.se 1013347489 regulus2.student.uu.se (10 Feb 2002 14:24:49 +0100)
Lines: 31
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> If you indeed run "gcc -MM" (without any other switches), GCC should
> have complained about <tmp.h> not found anywhere in the include path.
> So something is missing in your description.

But tmp.h is in the system header directory, c:\djgpp\include\ , isn't
gcc supposed to find it there? (tmp.c is in current directory, say
c:\sven\ ) I double-checked, and "gcc -MM tmp.c" does produce that
result.

Btw, I tested a bit more, putting more #include directives with quotes
in tmp.h, and changing the order of them. The general rule seems to be:
gcc -MM always ignores the first quoted include file but it never
ignores later ones.

> FWIW, GCC 2.95.3 correctly reports the dependencies: if I use -I. -MM
> and <tmp.h>, it doesn't mention any headers except djgpp.ver, and if I
> use -MM alone and change tmp.c to include "tmp.h", it reports all of
> tmp.h, tmp2.h, and tmp3.h.  I don't have GCC 3.0.3 installed where I
> type this to test that version.

I don't have an earlier version here so I can't test, but I think this
used to work with 2.95.*, i.e., it didn't produce dependencies to qouted
include files.

Oh, and when I'm at it, what is this djgpp.ver thing anyway? It's not
very good to have it in dependency files which you distribute, so I
usually sed it out. Is there any preferred way to get rid of it?

-- 
Sven Sandberg    svsa1977 AT student DOT uu DOT se    home.student.uu.se/svsa1977

- Raw text -


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