|
今天调试程序的时候发现写完程序keil直接编译不动了,后来才找到原因:还是定义和声明的问题。
我是这样定义的
code uchar *fangjian="房间";
code uchar *danyuan="单元";
code uchar *loudong="楼栋";
code uchar *help="有火情,请速来支援";
我是这样声明的:
extern code uchar *fangjian="房间";
extern code uchar *danyuan="单元";
extern code uchar *loudong="楼栋";
extern code uchar *help="有火情,请速来支援";
这样编译器直接无法编译,后来我有改成这样声明
extern code uchar *fangjian;
extern code uchar *danyuan;
extern code uchar *loudong;
extern code uchar *help;
就可以了
|
|