好的,
我的目录中有 3 个文件。
主程序
#include <stdio.h>
int main(int a, int b, int c)
{
aprint();
bprint();
}
交流
#include <stdio.h>
void aprint()
{
printf("hey This is a.c");
}
公元前
#include <stdio.h>
void bprint()
{
printf("This is b.c");
}
我还没有创建任何头文件。我刚刚使用“gcc main.c ac bc”编译我没有收到任何错误。我想知道发生了什么?gcc 是否只是假设在链接阶段一切都会好起来,为什么 gcc 在编译期间没有抛出错误?