nyl 发表于 2024-9-21 12:06:37

求助帖:32G12K128 添加头文件“USB.h”后编译不过

本帖最后由 DebugLab 于 2024-9-21 12:33 编辑



请各位大神指点下,是哪个地方出的问题。

DebugLab 发表于 2024-9-21 12:35:16

typedef存在重复的定义

soma 发表于 2024-9-21 12:44:46

打开stc.h看里面是不是和usb.h重定义了。

nyl 发表于 2024-9-21 15:15:50

soma 发表于 2024-9-21 12:44
打开stc.h看里面是不是和usb.h重定义了。

typedef bit BOOL;
typedef unsigned char BYTE;
typedef unsigned int WORD;
typedef unsigned long DWORD;

typedef unsigned char u8;
typedef unsigned int u16;
typedef unsigned long u32;

typedef unsigned char uchar;
typedef unsigned int uint;
typedef unsigned int ushort;
typedef unsigned long ulong;

typedef unsigned char uint8_t;
typedef unsigned int uint16_t;
typedef unsigned long uint32_t;
是的的确是这个问题,上边的数据类型在USB.h和stc.h中都有定义。原因找到了,多谢!

nyl 发表于 2024-9-21 15:17:11

DebugLab 发表于 2024-9-21 12:35
typedef存在重复的定义

是的,数据类型在usb.h和stc.h中重复定义了。多谢

nyl 发表于 2024-9-21 16:22:58

这种情况又是咋回事?新手哈,请大神们见谅下

dumon 发表于 2024-9-21 16:36:59

void main() 打错了
你的是void mian

nyl 发表于 2024-9-21 16:40:37

dumon 发表于 2024-9-21 16:36
void main() 打错了
你的是void mian

我咧个去!!!{:funk:}{:5_300:}

nyl 发表于 2024-9-21 16:42:25

dumon 发表于 2024-9-21 16:36
void main() 打错了
你的是void mian

问题还是没有解决

q515949148 发表于 2024-9-25 22:15:26

经典面函数{:5_314:}
页: [1]
查看完整版本: 求助帖:32G12K128 添加头文件“USB.h”后编译不过