delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/20/14:26:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <2C08D4EECBDED41184BB00D0B747334202FB42F9@exchanger.cacheflow.com>
From: "Karr, David" <david DOT karr AT cacheflow DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: "gcc -MM" ignores implicit function declarations, but "gcc -MMD"
gives implicit function declaration errors
Date: Fri, 20 Apr 2001 11:23:38 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

I'm trying to adapt a dependency builder that was using half gcc, half
homegrown tools to instead use straight "gcc".

I noticed that when I use "gcc -MM" (with appropriate "-D" and "-I"
options), it emits the dependencies on stdout (as I expect).  When I use
"gcc -MMD" instead, it correctly creates the "<sourcefile>.d" file, but it
also emits a compile error about an "implicit function declaration" (a
reference to "fileno").  When I use this in "make", it of course aborts the
build, even though it did everything correctly.  I could just use "-MM" and
just pipe the output to "<sourcefile>.d" (or set the "ignore" flag on the
rule), but it would have been nice to just use "-MMD" by itself.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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