This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Can I find what #defines's the pre-processor makes?
- From: Patrick Horgan <phorgan1 at yahoo dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: "Dr. David Kirkby" <david dot kirkby at onetel dot net>, gcc-help at gcc dot gnu dot org
- Date: Thu, 26 Nov 2009 13:02:41 -0800
- Subject: Re: Can I find what #defines's the pre-processor makes?
- References: <4B0EB8B3.8050404@onetel.net> <4B0EB9B8.80507@redhat.com>
- Reply-to: phorgan1 at yahoo dot com
Andrew Haley wrote:
gcc -save-temps -Wp,-dD
Look in the .i file
On unix like machines,
echo | cpp -dD
generates the list on stdout (i.e. to your console, or xterm or
whatever) without having to have any files involved.
Patrick