when GCC searches the system include directories, "/usr/include" first, or "usr/lib/gcc/include", "usr/local/lib/gcc/include"first?
John (Eljay) Love-Jensen
eljay@adobe.com
Wed May 19 13:19:00 GMT 2010
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
More information about the Gcc-help
mailing list