新手上路
- 积分
- 48
- 金钱
- 48
- 注册时间
- 2016-6-20
- 在线时间
- 5 小时
|
1金钱
如题,描述如下:
在 flash.h 中的结构体声明如下
#include "includes.h"
typedef struct store{
unsigned char data;
struct store* next;
}List;
在lcd.c的文件中调用结构体指针,并在lcd.h中声明
#include "includes.h"
void Lcd_DrawPicture(unsigned short xstart,unsigned short ystart,struct store* head);
结果出现warning: #231-D: declaration is not visible outside of function
如果lcd.c和lcd.h中使用的函数原型为
void Lcd_DrawPicture(unsigned short xstart,unsigned short ystart,List* head);
则直接报error,List undefined
不知道有没有大神遇过这个问题
|
|