今天编译一个STM32程序的时候,遇到了一个问题,编译通不过。

输出的错误信息是:

..\SYSTEM\usart\usart.c(41): error:  #260-D: explicit type is missing ("int" assumed)

 

借鉴他人的解决方法:

双击这个错误,定位到USART.C文件中的第41行。

Error: #260-D: explicit type is missing ("int" assumed)的解决方法

然后在_sys_exit前面加上void。

Error: #260-D: explicit type is missing ("int" assumed)的解决方法

编译就可以通过了。

 

相关文章:

  • 2021-09-03
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2021-11-19
  • 2022-12-23
猜你喜欢
  • 2022-01-09
  • 2021-07-11
  • 2022-01-14
  • 2022-01-25
  • 2021-08-29
  • 2021-08-31
相关资源
相似解决方案