背景 要把内核的一部分逻辑抽象成动态库,尝试写demo加载的时候一直链接不上,写此帖记录!以及过程中出现的问题原因!!!(见下文tips) 假设我的动态库代码长这个样子: //a.h #ifndef AAA #define AAA void yzy(int a); #endif //a.c #include <stdio.h> #