This is the mail archive of the
mailing list for the GCC project.
Re: gcc for syntax check only (C): need to read source from stdin
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 -
gcc: -E required when input is from standard input
and when I use -E it only runs the preprocessor, nothing else.
i. e. gcc still does not want to do anything beyond preprocessing
using stdin as input.
On 4/12/05, Devang Patel <email@example.com> wrote:
> Try -fsyntax-only
Anywhere on the Web