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 X-Sender: eliz AT is To: Sven Sandberg cc: djgpp AT delorie DOT com Subject: Re: another gcc 3.03 dependency question In-Reply-To: <3C65CAA0.77016B47@student.uu.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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 > > 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 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 , 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.