explicit type is missing (“int” assumed)解决方法

  • Post author:
  • Post category:其他


用KEIL MDK5.X版本开发STM32程序的时候,有时候使用的代码是从网上下载的,

编译会报这个错误 :explicit type is missing (“int” assumed)

解决方法也很简单:

把上面的

_sys_exit(int x)   改写成 void  _sys_exit(int x)

,如下:

这时候再编译就不会报错了。