From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hattuari Newsgroups: gmane.emacs.help Subject: c-macro-expand with C++? Date: Thu, 02 Jun 2005 18:46:32 -0400 Organization: Asii Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1117752352 16451 80.91.229.2 (2 Jun 2005 22:45:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2005 22:45:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 03 00:45:52 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DdyQw-0006gb-Co for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jun 2005 00:45:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdyWW-0000W8-AK for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jun 2005 18:50:48 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 02 Jun 2005 17:46:35 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: KNode/0.9.1 Original-Lines: 42 Original-NNTP-Posting-Host: 66.92.149.152 Original-X-Trace: sv3-wqmxcRU609vPxufUOtQhsPgggsLOfqnIpqh9r+kyKkEMqg3o39uTZMrKsuVQNc+OB0FoJ4ad5RKrJny!RkhCFq4cTu69dOQ0Sl+e/Gc46fD6LdHgwe1DzpXyoOhJEdKt2Cm4MJFI9c7Zd6BeiaMkF3VyrBf7!RVVEUTawAveHwaOBUEM= Original-X-Complaints-To: abuse@speakeasy.net X-DMCA-Complaints-To: abuse@speakeasy.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:131719 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27180 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27180 I've been trying to use c-macro-expand (for the first time in any language) with C++ code. It doesn't seem to know how to find the standard headers. I'm a bit confused by that since I am under the impression that GCC looks in its own installation directories automatically. Here's an example of what the output looks like: In file included from /home/hattons/opt/org/osg/include/osg/StateSet:18, from /home/hattons/opt/org/osg/include/osg/Node:19, from :17: /home/hattons/opt/org/osg/include/osg/StateAttribute:21:20: typeinfo: No such file or directory /home/hattons/opt/org/osg/include/osg/StateAttribute:22:19: utility: No such file or directory /home/hattons/opt/org/osg/include/osg/StateAttribute:23:18: vector: No such file or directory In file included from /home/hattons/opt/org/osg/include/osg/Uniform:25, from /home/hattons/opt/org/osg/include/osg/StateSet:21, from /home/hattons/opt/org/osg/include/osg/Node:19, from :17: /home/hattons/opt/org/osg/include/osg/GL2Extensions:24:18: string: No such file or directory In file included from /home/hattons/opt/org/osg/include/osg/StateSet:21, from /home/hattons/opt/org/osg/include/osg/Node:19, from :17: I tried giving it /usr/include and /usr/include/g++ (which is where I found what look to be the standard headers.) ls /usr/include/g++/ algorithm cctype clocale cstdarg ctime exception i586-suse-linux istream map queue streambuf vector backward cerrno cmath cstddef cwchar exception_defines.h iomanip iterator memory set string bits cfloat complex cstdio cwctype ext ios limits new sstream typeinfo bitset ciso646 csetjmp cstdlib cxxabi.h fstream iosfwd list numeric stack utility cassert climits csignal cstring deque functional iostream locale ostream stdexcept valarray Can this be made to work?