gcc 常见的编译警告与错误(按字母顺序排列)备课讲稿 下载本文

内容发布更新时间 : 2024/5/16 2:26:40星期一 下面是文章的全部内容请认真阅读。

精品文档

empty filename in #%s #%s 中文件名为空

expected expression before 'else' else之前无表达式

exponent has no digits 指数部分没有数字

extra tokens at end of #%s directive #%s 指示的末尾有多余的标识符

failure to convert %s to %s 无法从 %s 转换到 %s

fixed-point constants are a GCC extension 定点常量是一个 GCC 扩展

floating constant in preprocessor expression 浮点常量出现在预处理表达式中

function-like macro \\%s\\ must be used with arguments in traditional C 类似函数的宏“%s”在传统 C 中必须与参数一起使用

hex escape sequence out of range 16 进制转义序列越界

hexadecimal floating constants require an exponent 16 进制浮点常量需要指数部分

identifier \\%s\\ is a special operator name in C++ 标识符“%s”是 C++ 中的一个特殊操作符

收集于网络,如有侵权请联系管理员删除

精品文档

imaginary constants are a GCC extension 虚数常量是一个 GCC 扩展

imaginary number in preprocessor expression 预处理表达式中出现虚数

impossible operator ‘%u’ 不可能的操作‘%u’

In _cpp_valid_ucn but not a UCN 在 _cpp_valid_ucn 中但不是一个 UCN

incompatible implicit declaration of built-in function 'printf' 与内置的printf函数隐式声明不兼容。

incomplete universal character name %.*s 不完全的 Unicode 字符名 %.*s

initialization discards qualifiers from pointer target type 初始化取消了指针目标类型的限定。

initialization from incompatible pointer type 不兼容指针类型的初始化

integer constant is so large that it is unsigned 整数常量太大,认定为 unsigned

integer constant is too large for its type 整数常量值超出其类型

integer overflow in preprocessor expression 预处理表达式中整数溢出

收集于网络,如有侵权请联系管理员删除

精品文档

invalid #%s directive 无效的 #%s 指示

invalid #pragma GCC poison directive 无效的 #pragma GCC poison 指示

invalid #pragma pop_macro directive 无效的 #pragma pop_macro 指示

invalid #pragma push_macro directive 无效的 #pragma push_macro 指示

invalid built-in macro \\%s\\ 无效的内建宏“%s”

invalid character ‘%c’ in raw string delimiter 原始字符串分隔符中有无效字符‘%c’

invalid digit \\%c\\ in binary constant 二进制常量中有无效数字“%c

invalid digit \\%c\\ in octal constant 8 进制常量中有非法字符“%c

invalid flag \\%s\\ in line directive line 指示中有无效的标记“%s

invalid hash type %d in cpp_macro_definition cpp_macro_definition 中有无效的散列类型 %d

invalid prefix \\0b\\ for floating constant 浮点常量的“0b前缀无效

收集于网络,如有侵权请联系管理员删除

精品文档

invalid preprocessing directive #%s 无效的预处理指示 #%s

invalid storage class for function 'XXXXXX' 在文件的某个地方,丢失了一个大括号‘}’

invalid string literal, ignoring final ‘\\\\’ 无效的字面字符串,忽略最后的‘\\\\’

invalid suffix \\%.*s\\ on floating constant 浮点常量的“%.*s后缀无效

invalid suffix \\%.*s\\ on integer constant 整数常量的“%.*s后缀无效

invalid suffix \\%.*s\\ with hexadecimal floating constant 十六进制浮点常量的“%.*s后缀无效

invoking macro %s argument %d: empty macro arguments are undefined in ISO C90 and ISO C++98

调用宏 %s 的参数 %d:空的宏参数未被 ISO C90 和 ISO C++98 定义

ISO C does not permit named variadic macros ISO C 不允许有名的可变参数宏

ISO C99 requires rest arguments to be used ISO C99 需要使用剩余的参数

ISO C99 requires whitespace after the macro name ISO C99 要求宏名后必须有空白

line number out of range 行号超出范围

收集于网络,如有侵权请联系管理员删除

精品文档

lvalue required as left operand of assignment 左值问题

macro \\%s\\ is not used 宏“%s”未被使用

macro \\%s\\ passed %u arguments, but takes just %u 宏“%s”传递了 %u 个参数,但只需要 %u 个

macro \\%s\\ requires %u arguments, but only %u given 宏“%s需要 %u 个参数,但只给出了 %u 个

macro argument \\%s\\ would be stringified in traditional C 宏参数“%s”将在传统 C 中被字符串化

macro names must be identifiers 宏名必须是标识符

macro parameters must be comma-separated 宏参数必须由逗号隔开

missing ‘(‘ after predicate 谓词后缺少‘(’

missing ‘(‘ in expression 表达式中缺少‘(’

missing ‘)’ after \\defined\\\“defined 后出现‘)’

missing ‘)’ in expression 表达式中缺少‘)’

收集于网络,如有侵权请联系管理员删除