This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: when GCC searches the system include directories, "/usr/include" first, or "usr/lib/gcc/include", "usr/local/lib/gcc/include"first?
- From: "John (Eljay) Love-Jensen" <eljay at adobe dot com>
- To: Song Du <sdu at marvell dot com>
- Cc: GCC-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 19 May 2010 04:22:47 -0700
- Subject: Re: when GCC searches the system include directories, "/usr/include" first, or "usr/lib/gcc/include", "usr/local/lib/gcc/include"first?
Hi Song,
> Tried [echo " " | gcc -c -xc -v -o tmp.o], seems gcc does not receive the pipe
> as its input.
echo "" | gcc -c -xc - -v -o tmp.o
.....................^
The '-' tells the compiler to use stdin for the source.
Note that parameter order is significant for the gcc command line
parameters. Sometimes in non-obvious ways.
Sincerely,
--Eljay