keil编译时出错。怎么办?

如题所述

第1个回答  2019-09-04
在xxx.c中增加:#include
"xxx.h"
一般typedef单独定义在1个文件中,如下
typedef.h
#ifndef
_TYPEDEF_H_
#define
_TYPEDEF_H_
/*=======================================
*
Data
types
*======================================*/
typedef
unsigned
char
u8;
/*
unsigned
8-bit
*/
typedef
unsigned
short
u16;
/*
unsigned
16-bit
*/
typedef
unsigned
long
u32;
/*
unsigned
32-bit
*/
typedef
short
int
s16;
typedef
long
int
s32;
typedef
char
s8;
typedef
unsigned
char
BOOL;
#ifndef
TRUE
#define
TRUE
1
#endif
#ifndef
FALSE
#define
FALSE
0
#endif
#ifndef
NULL
#define
NULL
0
#endif
#endif
相似回答
大家正在搜