刚编了个程序,主程序要用到显示文字,把文字建模后都存到Model.h中,另外把一些固定显示内容的函数编在了Main_Disp.c中,并建了Main_Disp.h,由main.c调用,不过在main.c中也有的地方用到了Model.h,编译通过,但连接的时候说那些字模都是重复定义了,这个问题怎么解决呢?
main.c
#include "Model.h"
#include "Main_Disp.h"
....
....
Main_Disp.c
#include "Model.h"
....
....
Model.h
#ifndef _Model_H
#define _Model_H
unsigned char code font_dong[] = //"动"
{
0x00,0x00,0x40,0x48,0xC8,0x48,0x48,0x40,0x20,0x20,0xFC,0x20,0x20,0xE0,0x00,0x00,
0x00,0x00,0x0C,0x0A,0x09,0x08,0x0A,0x2C,0x10,0x0C,0x13,0x20,0x10,0x0F,0x00,0x00,
};
......
.....
#endif
|