error: conflicting types for 'uint32_t'

肉粒多真好吃啊 2019-09-17 03:51:18
图1:error



图2:错误处1



图3:错误处2


如图,求问各位大佬怎么解决呀?
...全文
3374 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
使劲编 2021-07-29
  • 打赏
  • 举报
回复

#include <stdint.h>

    typedef unsigned char boolean_t;
#if 0
    typedef unsigned char uint8_t;
    typedef unsigned short uint16_t;
    typedef unsigned int uint32_t;
    typedef unsigned long long uint64_t;
    
    typedef signed char         int8_t;
    typedef signed short        int16_t;
    typedef signed int         int32_t;
    typedef signed long long    int64_t;
#endif

1、声明编译器提供的库文件
2、注释掉重复声明的类型

  • 打赏
  • 举报
回复
已知是定义冲突去掉一个就好了,只是看不懂错误处2的定义

27,508

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 单片机/工控
社区管理员
  • 单片机/工控社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧