From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: /lib/cpp not found in c-mode Date: Tue, 03 May 2005 22:13:35 +0300 Message-ID: <01c55014$Blat.v2.4$59df46a0@zahav.net.il> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1115237686 13406 80.91.229.2 (4 May 2005 20:14:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 20:14:46 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 04 22:14:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTQFD-00061o-EO for ged-emacs-devel@m.gmane.org; Wed, 04 May 2005 22:13:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTQMa-00042R-KK for ged-emacs-devel@m.gmane.org; Wed, 04 May 2005 16:20:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DT9Pz-0005Qv-Oy for emacs-devel@gnu.org; Tue, 03 May 2005 22:15:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DT9Pw-0005Px-AL for emacs-devel@gnu.org; Tue, 03 May 2005 22:15:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DT9Nx-0004bh-R0 for emacs-devel@gnu.org; Tue, 03 May 2005 22:13:14 -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 1DT9Oq-0004Au-CN for emacs-devel@gnu.org; Tue, 03 May 2005 22:14:08 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by mx20.gnu.org with esmtp (Exim 4.34) id 1DT2uh-0007ZG-Jh for emacs-devel@gnu.org; Tue, 03 May 2005 15:18:35 -0400 Original-Received: from zaretski (IGLD-80-230-71-109.inter.net.il [80.230.71.109]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id BDC50737 (AUTH halo1); Tue, 3 May 2005 22:15:56 +0300 (IDT) Original-To: Stefan Monnier X-Mailer: emacs 22.0.50 (via feedmail 8 I) and Blat ver 2.4 In-reply-to: (message from Stefan Monnier on Mon, 02 May 2005 18:16:33 -0400) 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:36653 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36653 > From: Stefan Monnier > Date: Mon, 02 May 2005 18:16:33 -0400 > Cc: "Jan D." , emacs-devel@gnu.org > > 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. ??? Isn't it a simple matter of looking at the Makefile and passing the relevant switches to the preprocessor? If the Makefile is too complex to figure out the switches, I usually invoke "make foo.o" to see what switches it uses, then copy them into the c-macro-expand's prompt for arguments.