10.07.2015 Views

MPLAB® C30 C 编译器用户指南

MPLAB® C30 C 编译器用户指南

MPLAB® C30 C 编译器用户指南

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MPLAB ® <strong>C30</strong> 用 户 指 南extra semicolon in struct or union specified结 构 类 型 或 联 合 类 型 包 含 多 余 的 分 号 。extra tokens at end of #‘directive’ directive编 译 器 在 包 含 #‘directive’ 伪 指 令 的 源 代 码 行 中 检 测 到 多 余 的 文 本 。F-ffunction-sections may affect debugging on some targets如 果 同 时 指 定 -g 选 项 和 -ffunction-sections 选 项 , 调 试 时 可 能 会 遇 到 问 题 。first argument of ‘identifier’ should be ‘int’要 求 将 指 定 标 识 符 的 第 一 个 参 数 声 明 为 int 型 。floating constant exceeds range of ‘double’浮 点 型 常 量 长 度 太 大 或 太 小 , 不 能 表 示 为 “double”。floating constant exceeds range of ‘float’浮 点 型 常 量 长 度 太 大 或 太 小 , 不 能 表 示 为 “float”。floating constant exceeds range of ‘long double’浮 点 型 常 量 长 度 太 大 或 太 小 , 不 能 表 示 为 “long double”。floating point overflow in expression当 合 并 一 个 浮 点 型 常 量 表 达 式 时 , 编 译 器 发 现 表 达 式 溢 出 , 即 它 不 能 表 示 为 浮 点 型 。‘type1’ format, ‘type2’ arg (arg ‘num’)格 式 的 类 型 为 “type1”, 但 传 递 的 参 数 类 型 为 “type2”。有 问 题 的 参 数 为 “num” 参 数 。format argument is not a pointer (arg n)当 检 查 对 printf、 scanf 等 的 调 用 的 参 数 列 表 时 , 编 译 器 发 现 指 定 的 参 数 编 号 n 不 是 指针 , 格 式 说 明 符 指 明 它 应 为 一 个 指 针 。format argument is not a pointer to a pointer (arg n)当 检 查 对 printf、 scanf 等 的 调 用 的 参 数 列 表 时 , 编 译 器 发 现 指 定 的 参 数 编 号 n 不 是 指针 , 格 式 说 明 符 指 明 它 应 为 一 个 指 针 。fprefetch-loop-arrays not supported for this target目 标 器 件 不 支 持 生 成 预 取 存 储 器 指 令 的 选 项 。function call has aggregate value函 数 的 返 回 值 为 聚 集 。function declaration isn’t a prototype当 使 用 -Wstrict-prototypes 命 令 行 选 项 编 译 时 , 编 译 器 确 保 为 所 有 函 数 指 定 了函 数 原 型 。 在 本 例 中 , 遇 到 了 之 前 没 有 函 数 原 型 的 函 数 定 义 。function declared ‘noreturn’ has a ‘return’ statement用 noreturn 属 性 声 明 了 函 数 没 有 返 回 值 , 但 函 数 却 包 含 返 回 语 句 。 这 是 不 一 致 的 。DS51284C_CN 第 138 页© 2005 Microchip Technology Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!