本帖最后由 xyz549040622 于 2023-2-23 23:31 编辑
以下是帮助文档的答案
An error indicates a violation of the syntax or semantic rules of the C/C++ language. Compilation continues, but object code is not generated.
A warning indicates something that is valid but questionable. Compilation continues and object code is generated (if no errors are detected).
A remark is less serious than a warning. It indicates something that is valid and probably intended, but may need to be checked. Compilation continues and object code is generated (if no errors are detected). By default, remarks are not issued. Use the -pdr compiler option to enable remarks.
以下是中文翻译的答案
错误表示违反了 C/C++ 语言的语法或语义规则。编译将继续,但不生成目标代码。
警告表示有效但可疑的内容。编译将继续并生成目标代码(如果未检测到错误)。
评论不如警告严重。它表示有效且可能有意但可能需要检查的内容。编译将继续并生成目标代码(如果未检测到错误)。默认情况下,不发出备注。使用 -pdr 编译器选项启用备注。
|