syntax

Tells the compiler to check only for correct syntax.
This option has been deprecated.

IDE Equivalent

None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux: -syntax
Mac OS: None
Windows:  None

Arguments

None

Default

OFF Normal compilation is performed.

Description

This option tells the compiler to check only for correct syntax. It lets you do a quick syntax check of your source file.

Compilation stops after the source file has been parsed. No code is generated, no object file is produced, and some error checking done by the optimizer is bypassed.

Warnings and messages appear on stderr.

Alternate Options

Linux and Mac OS: -fsyntax-only
Windows: /Zs