社区
单片机/工控
帖子详情
identifier uint8 is undefined extern uinti
逍寂
2019-10-31 05:17:22
...全文
2150
5
打赏
收藏
identifier uint8 is undefined extern uinti
[图片]
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
你猜天空和我的中间
2019-11-25
打赏
举报
回复
把这个文件添加到工程里面试试
bsnow
2019-11-01
打赏
举报
回复
可以采用 2楼办法, 也可以采用1楼办法,#include <stdint.h> 但是注意 应该是 uint8_t 不是 uint8 如果用uint8的地方很多 你自己可以 在你的 头文件里面加个宏 #define uint8 unsigned char
worldy
2019-11-01
打赏
举报
回复
在文件的定义函数的前面,‘
#define uint8 unsigned char
yishumei
2019-10-31
打赏
举报
回复
uint8改成unsigned char
zgl7903
2019-10-31
打赏
举报
回复
uint8 不是标准类型 试试 #include <stdinth>
KEIL5 报错提示 error: #20:
identifier
“u
int
8_t“ is
undefined
本程序使用hal库,当编译时提示错误 error: #20:
identifier
“u
int
8_t” is
undefined
。当Go To Definition Of 'u
int
8_t’也能跳转到’u
int
8_t’的定义处。在网上查找解决方法,按照网上的方法,在文件中直接引用头文件#include “std
int
.h”,解决问题。
error: #20:
identifier
“u
int
8_t“ is
undefined
只需将#include"stm32f1xx_hal.h"放在对应的.h文件就不会报错了。
error: #20:
identifier
“u
int
16“ is
undefined
错误记录
错误记录
extern
关键字的使用。keil中编译时,出现error:
identifier
xxx is
undefined
keil中编译时,出现error:
identifier
xxx is
undefined
,关于
extern
关键字的使用。
error:
identifier
"" is
undefined
编译时一直报错,提示error:
identifier
"" is
undefined
,检查了下头文件引用和拼写,都正确…… 看一下基本代码(只列出涉及的代码) ===================================== 【ring.c】 #include "ring.h" 【ring.h】 #include "iap.h" //【1】 typedef struc...
单片机/工控
27,517
社区成员
28,799
社区内容
发帖
与我相关
我的任务
单片机/工控
硬件/嵌入开发 单片机/工控
复制链接
扫一扫
分享
社区描述
硬件/嵌入开发 单片机/工控
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章