Mail Archives: djgpp/2002/02/10/06:52:57
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 -