转换:诊断Translation: Diagnostics

ANSI 2.1.1.3 如何标识诊断ANSI 2.1.1.3 How a diagnostic is identified

Microsoft C 生成以下形式的错误消息:Microsoft C produces error messages in the form:


filename( line-number ) : diagnostic Cnumbermessage  

其中,filename 是出现错误的源文件的名称;line-number 是编译器在其中检测到错误的行号;diagnostic 是“错误”或“警告”;number 是标识错误或警告的唯一的四位数(前面带有 C,如语法中所注明的);message 是解释性消息。where filename is the name of the source file in which the error was encountered; line-number is the line number at which the compiler detected the error; diagnostic is either "error" or "warning"; number is a unique four-digit number (preceded by a C, as noted in the syntax) that identifies the error or warning; message is an explanatory message.

另请参阅See Also

实现定义的行为Implementation-Defined Behavior