写好的C语言程序上传至虚拟机,在Ubuntu中使用make命令编译Makefile时发现出现上述错误。表示Makefile第四行有问题,检查Makefile发现gcc命令出现问题,原命令: gcc -o a.o a.c
修改如下:
gcc -c -o a.o a.c
后,再次编译没有问题。细节很重要!很重要!
时间:2019-04-04 06:26:40
写好的C语言程序上传至虚拟机,在Ubuntu中使用make命令编译Makefile时发现出现上述错误。表示Makefile第四行有问题,检查Makefile发现gcc命令出现问题,原命令: gcc -o a.o a.c
修改如下:
gcc -c -o a.o a.c
后,再次编译没有问题。细节很重要!很重要!
报错:Makefile:recipe for target ‘clean‘ failed
2021-06-13