Specifies the maximum number of errors allowed before compilation stops.
Windows: Compilation Diagnostics > Error Limit
Linux: None
Mac OS X: Compiler Diagnostics > Error Limit
IA-32, Intel® 64, IA-64 architectures
Linux and Mac OS X: | -diag-error-limitn -no-diag-error-limit |
Windows: | /Qdiag-error-limit:n /Qdiag-error-limit- |
n |
Is the maximum number of error-level or fatal-level compiler errors allowed. |
30 |
A maximum of 30 error-level and fatal-level messages are allowed. |
This option specifies the maximum number of errors allowed before compilation stops. It indicates the maximum number of error-level or fatal-level compiler errors allowed for a file specified on the command line.
If you specify -no-diag-error-limit (Linux and Mac OS X) or /Qdiag-error-limit- (Windows) 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.
Linux and Mac OS X: -error-limit and -noerror-limit
Windows: /error-limit and /noerror-limit