error-limit

Specifies the maximum number of error-level or fatal-level compiler errors allowed for a file specified on the command line.

IDE Equivalent

Windows: Compilation Diagnostics > Error Limit
Linux: None
Mac OS X:
Compiler Diagnostics > Error Limit

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS X: -error-limit n
-noerror-limit
Windows:  /error-limit:n
/noerror-limit

Arguments

n Is the maximum number of error-level or fatal-level compiler errors allowed.

Default

30 A maximum of 30 error-level and fatal-level messages are allowed before the compiler stops the compilation.

Description

This option specifies the maximum number of error-level or fatal-level compiler errors allowed for a file specified on the command line.

If you specify noerror-limit on the command line, there is no limit on the number of errors that are allowed.

If the maximum number of errors is reached, a warning message is issued and the next file (if any) on the command line is compiled.

Alternate Options

None