STM32CubeIDE incompatible implicit declaration of built-in function 'printf'

在STM32CubeIDE 上使用printf的时候一直报warring,incompatible implicit declaration of built-in function 'printf'

翻译过来是 内置函数'printf'的不兼容隐式声明,解决办法,在main.h中添加头文件包含

#include <stdio.h>

 

posted @ 2019-12-04 09:56  飞起的小田  阅读(2107)  评论(0编辑  收藏  举报