This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Small feature for gcc
> From: "Rupert Wood" <me@rupey.net>
> To: "'mike stump'" <mrs@windriver.com>
> Cc: <980611bb@hogent.be>, <gcc@gnu.org>
> Date: Tue, 7 May 2002 18:57:08 +0100
> He might have meant without all the cruft so he could backtick it, e.g.:
> for _d in `gcc -print-include-search`; do
> if [ -f $_d/stdio.h ]; then
> STDIO_PATH=$_d/stdio.h
> break
> fi
> done
> I can't think of a good reason why you'd want to do that, though.
$ echo "#include <stdio.h>" | gcc -E - | sed -n 2p | cut -d\ -f3
"/folk/mrs/packages/gcc-20010413/lib/gcc-lib/sparc-sun-solaris2.7/3.1/include/stdio.h"
:-)