Dimitry Golubovsky <[EMAIL PROTECTED]> writes: > Devang, > > Thanks for your relpy. > > This addresses only compiler's action problem (no output produced), > but does not address the stdin problem. > > When I try > > % cat a.c | gcc -fsyntax-only - > > I get > > gcc: -E required when input is from standard input
In order to run the compiler as well, you have to tell it what language it's getting, e.g. $ cat a.c | gcc -x c -fsyntax-only - Normally this is determined from the file extension, but that's not available when reading stdin. It doesn't matter (much) when running the preprocessor, which is why it lets you do that without the -x c. zw