implicit declaration of function 出现问题

https://www.cnblogs.com/wocgcow/p/5909007.html

场景:
print.h中有函数put_str
a文件中使用put_str,但是应没有#include "print.h"
函数put_str定义在print.S的汇编程序的global put_str
-I 参数制定了print.h和print.S的文件夹
在最后链接的时候 链接进去了print.o 和 a.o
最后可执行,但是报了这个warning

解决方式:
在调用这个函数的文件上加上#include "print.h" 即可

原文地址:https://www.cnblogs.com/Alruddy/p/9615463.html