delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/10/06:52:57

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Sun, 10 Feb 2002 13:51:14 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Sven Sandberg <svsa1977 AT student DOT uu DOT se>
cc: djgpp AT delorie DOT com
Subject: Re: another gcc 3.03 dependency question
In-Reply-To: <3C65CAA0.77016B47@student.uu.se>
Message-ID: <Pine.SUN.3.91.1020210135041.15572M-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 10 Feb 2002, Sven Sandberg wrote:

> I have four files: 
>    c:\djgpp\include\tmp.h contains:
>      #include "tmp2.h"
>      #include "tmp3.h"
>    c:\djgpp\include\tmp2.h is empty
>    c:\djgpp\include\tmp3.h is empty
>    tmp.c contains:
>       #include <tmp.h> 
> 
> If I run
> 
>    gcc -MM tmp.c
> 
> I get the output
> 
>    tmp.o: tmp.c c:/djgpp/lib/gcc-lib/djgpp/3.03/djgpp.ver \
>      c:/djgpp/include/tmp3.h

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.

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.

- Raw text -


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