OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 3432|回复: 4

keil 530 编译 STM32F429 出错。

[复制链接]

2

主题

11

帖子

0

精华

新手上路

积分
41
金钱
41
注册时间
2020-6-4
在线时间
7 小时
发表于 2020-6-11 09:36:27 | 显示全部楼层 |阅读模式
1金钱
今天换了Keil版本,编译一大堆错误啊。帮忙指点指点
..\..\USER\Bsp\mpu6050\mllite\results_holder.c: 6 warnings, 30 errors
compiling mpl.c...
..\..\USER\Bsp\mpu6050\driver\include\log.h(340): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\..\USER\Bsp\mpu6050\driver\include\log.h(340): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\..\USER\Bsp\mpu6050\mllite\mpl.h(16): warning:  #12-D: parsing restarts here after previous syntax error
  inv_error_t inv_init_mpl(void);
..\..\USER\Bsp\mpu6050\mllite\mpl.c(34): warning:  #223-D: function "__print_result_location" declared implicitly
      INV_ERROR_CHECK(inv_init_start_manager());
..\..\USER\Bsp\mpu6050\mllite\mpl.c(37): warning:  #223-D: function "__print_result_location" declared implicitly
      INV_ERROR_CHECK(inv_init_data_builder());
..\..\USER\Bsp\mpu6050\mllite\mpl.c(39): warning:  #223-D: function "__print_result_location" declared implicitly
      INV_ERROR_CHECK(inv_enable_results_holder());
..\..\USER\Bsp\mpu6050\mllite\mpl.c(66): warning:  #223-D: function "__print_result_location" declared implicitly
      INV_ERROR_CHECK(inv_execute_mpl_start_notification());
..\..\USER\Bsp\mpu6050\mllite\mpl.c: 6 warnings, 1 error
compiling start_manager.c...
..\..\USER\Bsp\mpu6050\driver\include\log.h(340): warning:  #260-D: explicit type is missing ("int" assumed)
  static inline void __print_result_location(int result,
..\..\USER\Bsp\mpu6050\driver\include\log.h(340): error:  #65: expected a ";"
  static inline void __print_result_location(int result,
..\..\USER\Bsp\mpu6050\driver\include\mltypes.h(109): error:  #20: identifier "int8_t" is undefined

最佳答案

查看完整内容[请看2#楼]

自己顶一下,增加C99 支持即可
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

2

主题

11

帖子

0

精华

新手上路

积分
41
金钱
41
注册时间
2020-6-4
在线时间
7 小时
 楼主| 发表于 2020-6-11 09:36:28 | 显示全部楼层
自己顶一下,增加C99 支持即可
回复

使用道具 举报

2

主题

11

帖子

0

精华

新手上路

积分
41
金钱
41
注册时间
2020-6-4
在线时间
7 小时
 楼主| 发表于 2020-6-11 09:37:12 | 显示全部楼层
不知道是不是编译器的问题。编译版本选了几个都不行
回复

使用道具 举报

2

主题

11

帖子

0

精华

新手上路

积分
41
金钱
41
注册时间
2020-6-4
在线时间
7 小时
 楼主| 发表于 2020-6-11 09:42:24 | 显示全部楼层
inline 会导致出错。。改怎么设置呢?大虾指教指教
回复

使用道具 举报

2

主题

11

帖子

0

精华

新手上路

积分
41
金钱
41
注册时间
2020-6-4
在线时间
7 小时
 楼主| 发表于 2020-6-11 09:46:39 | 显示全部楼层
百度一下,终于阔以啦.....
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-11 07:09

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表