X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: another gcc 3.03 dependency question Date: 10 Feb 2002 14:38:48 GMT Organization: Cornell University Lines: 55 Sender: asu1 AT cornell DOT invalid (on pool-141-149-207-44.syr.east.verizon.net) Message-ID: References: NNTP-Posting-Host: pool-141-149-207-44.syr.east.verizon.net X-Trace: news01.cit.cornell.edu 1013351928 19005 141.149.207.44 (10 Feb 2002 14:38:48 GMT) X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu NNTP-Posting-Date: 10 Feb 2002 14:38:48 GMT User-Agent: Xnews/L5 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote in news:Pine DOT SUN DOT 3 DOT 91 DOT 1020210135041 DOT 15572M-100000 AT is: > > 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. After posting my response to Sven, I noticed that I hadn't read your post correctly. I can reproduce his problems on a Windows XP Pro machine (with gcc 3.03): C:\DOCUME~1\asu1\LOCALS~1\Temp>gcc -MM tmp.c tmp.o: tmp.c c:/djgpp/lib/gcc-lib/djgpp/3.03/djgpp.ver whereas you indicate this sould have complained about not being able to find , and C:\DOCUME~1\asu1\LOCALS~1\Temp>gcc -I. -MM tmp.c tmp.o: tmp.c c:/djgpp/lib/gcc-lib/djgpp/3.03/djgpp.ver tmp3.h whereas you mentioned this should only list djgpp.ver as a dependency. Changing to "tmp.c" yields the expected behavior. Sorry I can't shed any light on to this. Sinan.