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> C 编 译 器 诊 断initializer for static variable is not constant要 用 常 数 初 始 化 静 态 变 量 。initializer for static variable uses complicated arithmetic不 要 使 用 复 杂 的 算 术 来 初 始 化 静 态 变 量 。input operand constraint contains ‘constraint’输 入 操 作 数 的 指 定 约 束 无 效 。int-array initialized from non-wide string不 应 该 用 非 宽 字 符 串 初 始 化 整 型 数 组 。interrupt functions must not take parameters中 断 函 数 不 能 接 收 参 数 。 必 须 使 用 void 来 显 式 声 明 参 数 列 表 为 空 。interrupt functions must return void中 断 函 数 的 返 回 值 类 型 必 须 为 void。 不 允 许 任 何 其 他 返 回 值 类 型 。interrupt modifier ‘name’ unknown编 译 器 要 求 以 “irq’”、“ altirq” 或 “save” 作 为 中 断 属 性 修 饰 符 。interrupt modifier syntax error中 断 属 性 修 饰 符 有 语 法 错 误 。interrupt pragma must have file scope#pragma 中 断 必 须 具 有 文 件 作 用 域 。interrupt save modifier syntax error中 断 属 性 的 “save” 修 饰 符 有 语 法 错 误 。interrupt vector is not a constant中 断 向 量 号 必 须 为 整 型 常 量 。interrupt vector number n is not valid需 要 一 个 有 效 的 中 断 向 量 号 。invalid #ident directive#ident 应 该 后 跟 一 个 引 号 括 起 来 的 字 符 串 常 量 。invalid arg to ‘__builtin_frame_address’参 数 应 该 是 函 数 的 调 用 函 数 的 级 别 ( 其 中 0 产 生 当 前 函 数 的 帧 地 址 , 1 产 生 当 前 函 数的 调 用 函 数 的 帧 地 址 , 等 等 ), 为 整 型 立 即 数 。invalid arg to ‘__builtin_return_address’级 别 (level) 参 数 必 须 为 整 型 立 即 数 。invalid argument for ‘name’编 译 器 要 求 以 “data” 或 “prog” 作 为 space 属 性 的 参 数 。invalid character ‘character’ in #if当 一 个 不 可 打 印 字 符 ( 如 控 制 字 符 ) 出 现 在 #if 后 时 , 出 现 这 条 消 息 。invalid initial value for member ‘name’只 能 用 整 数 来 初 始 化 位 域 “name”。invalid initializer不 要 使 用 无 效 的 初 始 化 。© 2005 Microchip Technology Inc. DS51284C_CN 第 121 页

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

Saved successfully!

Ooh no, something went wrong!