标签: c linker-errors
我在构建项目时遇到了一个问题,我将其简化如下:
a.c
f()
a.h
b.c
p
但是当链接器链接a.o和b.o时,它会报告错误:definition of f() can't be found (reference from b.o);有人能告诉我导致错误发生的原因吗?
definition of f() can't be found (reference from b.o)