直接生成可执行文件a.out gcc main.c link.c 指定生成可执行文件 gcc main.c link.c -o app 生成.o文件 gcc main.c -c 再用可执行文件进行编译 gcc main.o link.o