再运行 ./gao.o 也会得到提示:bash unable to run binary file. 要想运行,还需要手工执行链接动作 :cc -o my.o gao.o。 如果没有makefile ,单纯执行,则是不带-c选项: cc -o gao.o gao.c ,可以得到可执行文件gao.o