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>

猜你喜欢

转载自www.cnblogs.com/tianxxl/p/11981028.html