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: Diagnostics > Error Limit
Linux: None

Architectures

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

Syntax

Linux: -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