C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Checking Syntax (/Zs)
                                             Up Contents Index Back
─────C/C++ Compiler─────────────────────────────────────────────────────────
 
     Syntax:  /Zs sourcefiles
 
     This option causes the compiler to perform a syntax check on
     <sourcefiles>. With this option, you can quickly find and correct
     syntax errors without doing a full compile and link.
 
     The output is sent to the standard output device. Error messages
     are displayed if the source file has syntax errors. The compiler
     does not generate code or produce object files, object listings,
     or executable files.
 
     To generate a source listing showing the error messages, specify
     the /Fs option on the same command line.
 
     See: Listing Files (/Fs)
                                    -♦-