delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/05/02/12:45:42

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gcc -MM output
Date: 2 May 2005 16:32:09 GMT
Lines: 38
Message-ID: <3dn309F6tmbfpU2@news.dfncis.de>
References: <42764B12 DOT 8495F94D AT yahoo DOT com> <200505021555 DOT j42FtjXb006027 AT envy DOT delorie DOT com>
X-Trace: news.dfncis.de 8jbzs9meoUJNx/g42+F0EAepPTkWT7suJxrOlVaynnuY9ykhUtuN2crRlJ
X-Orig-Path: not-for-mail
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

DJ Delorie <dj AT delorie DOT com> wrote:

> Second, I don't know why gcc is treating it like a user include; it
> should be a system include.  

It's correct according to the docs, because djgpp.ver is not in what
GCC would recognizes as a "system include directory".

Here's some example output (reformatted for legible posting)
C:\My Documents\tmp>gcc -MM -v -c tt.c
Reading specs from c:/djgpp/bin/../lib/gcc/djgpp/3.41/specs
Configured with: /Build/gcc34/gnu/gcc-3.41/configure djgpp 
   --prefix=/dev/env/DJDIR --disable-nls --disable-libstdcxx-pch
Thread model: single
gcc version 3.4.1
 c:/djgpp/bin/../libexec/gcc/djgpp/3.41/cc1.exe -E -quiet -v 
   -iprefix c:/djgpp/bin/../lib/gcc/djgpp/3.41/ -MM -remap
   -imacros c:/djgpp/bin/../lib/gcc/djgpp/3.41/djgpp.ver 
   tt.c -mtune=pentium
ignoring nonexistent directory 
   "c:/djgpp/bin/../lib/gcc/djgpp/3.41/../../../../djgpp/include"
ignoring nonexistent directory "c:/djgpp/djgpp/include/"
#include "..." search starts here:
#include <...> search starts here:
 c:/djgpp/bin/../lib/gcc/djgpp/3.41/include
 c:/djgpp/lib/gcc/djgpp/3.41/include/
 c:/djgpp/include/
End of search list.
tt.o: tt.c c:/djgpp/bin/../lib/gcc/djgpp/3.41/djgpp.ver

Unfortunately, adding the directory holding djgpp.ver to the system
include path list in any of the ways I tried (-I, -isystem, both with
and without the bin/.. sequence collapsed) didn't succeed in getting
it removed from the dependency output.  Andris?

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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