This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc for syntax check only (C): need to read source from stdin


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

again

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 <dpatel@apple.com> wrote:
> Try -fsyntax-only
-- 
Dimitry Golubovsky

Anywhere on the Web


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]