Chinaunix首页 | 论坛 | 博客
  • 博客访问: 804121
  • 博文数量: 117
  • 博客积分: 2583
  • 博客等级: 少校
  • 技术积分: 1953
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-06 22:58
个人简介

Coder

文章分类
文章存档

2013年(1)

2012年(10)

2011年(12)

2010年(77)

2009年(13)

2008年(4)

分类: C/C++

2010-02-06 11:11:09

1、
The #error Directive

Error directives produce compiler-time error messages.

#error token-string
The error messages include the argument
token-string and are subject to macro expansion. These directives are most useful for detecting programmer inconsistencies and violation of constraints during preprocessing.


空宏和未定义的宏都展开为空字符串,但定义为空字符串的宏被视为是在预处理表达式中定义的。若要将宏定义为空字符串,请不要在命令行或命令文件中的等号 (=) 后面指定除空格或制表符以外的任何字符,并将空字符串或定义引在双引号 (" ") 内。若要取消定义宏,使用 !UNDEF



2、Error: Internal_relocation (type 182) not fixed up (OFFSET_IMM)
编译 start.S 文件时出错。
问题的原因是有一个变量写错,导致无法找到定义。

阅读(953) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~