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" 即可

相关文章:

  • 2022-12-23
  • 2021-12-15
  • 2021-06-01
  • 2021-04-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-04
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案