From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: /lib/cpp not found in c-mode Date: Tue, 03 May 2005 11:45:32 -0400 Message-ID: References: <17013.26868.207510.370151@farnswood.snap.net.nz> <17013.52411.51878.781739@farnswood.snap.net.nz> <17014.39042.74353.677362@farnswood.snap.net.nz> <17014.63597.251623.642889@farnswood.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115231539 15901 80.91.229.2 (4 May 2005 18:32:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 18:32:19 +0000 (UTC) Cc: "Jan D." , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 04 20:32:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTOef-0007tO-VW for ged-emacs-devel@m.gmane.org; Wed, 04 May 2005 20:31:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTOm2-0004Px-2T for ged-emacs-devel@m.gmane.org; Wed, 04 May 2005 14:39:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DT2WZ-0001W3-7U for emacs-devel@gnu.org; Tue, 03 May 2005 14:53:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DT2WT-0001TE-8e for emacs-devel@gnu.org; Tue, 03 May 2005 14:53:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DT2WP-0001QG-Mc for emacs-devel@gnu.org; Tue, 03 May 2005 14:53:29 -0400 Original-Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_ARCFOUR_SHA:16) (Exim 4.34) id 1DT2Z8-0000ye-FG for emacs-devel@gnu.org; Tue, 03 May 2005 14:56:18 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by mx20.gnu.org with esmtp (Exim 4.34) id 1DT1uz-0000oS-S4 for emacs-devel@gnu.org; Tue, 03 May 2005 14:14:50 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 3702A340010; Tue, 3 May 2005 11:45:39 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id B0BC74AC009; Tue, 3 May 2005 11:45:32 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id A6EEFE6C1D; Tue, 3 May 2005 11:45:32 -0400 (EDT) Original-To: Nick Roberts In-Reply-To: <17014.63597.251623.642889@farnswood.snap.net.nz> (Nick Roberts's message of "Tue, 3 May 2005 16:05:01 +1200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.839, requis 5, autolearn=not spam, AWL 0.06, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36637 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36637 >> Don't know about others, but the reason why I don't use c-macro-expand is >> because it basically can't work right without parsing my Makefile(s) to know >> which include dirs should be used. And since it doesn't do that, I've found >> it of little use. > OK. I see now. For Emacs, the source seems to have the same flags. So, in > that case, I guess you could do something like: > (setq c-macro-cppflags "-Demacs -DHAVE_CONFIG_H -DUSE_LUCID -I. -I/home/nick/emacs/src -D_BSD_SOURCE -I/usr/X11R6/include") Except that Emacs is not the only project I work on that uses the C language. Stefan