在ubuntu16.04里出现的这种问题,有谁知道怎么解决吗?谢谢啦。
试试命令 ** gcc main main.c a.c**gcc是gcc编译器,main为编译后的文件,main.c和a.c都为编译后的文件,如果还不行,其他不变,将a.c换为a.h
int fun();修改为extern int fun();
并且a.c不需要include a.h