700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > Makefile:4: recipe for target 'a.o' failed

Makefile:4: recipe for target 'a.o' failed

时间:2019-04-04 06:26:40

相关推荐

Makefile:4: recipe for target 'a.o' failed

写好的C语言程序上传至虚拟机,在Ubuntu中使用make命令编译Makefile时发现出现上述错误。表示Makefile第四行有问题,检查Makefile发现gcc命令出现问题,原命令: gcc -o a.o a.c

修改如下:

gcc -c -o a.o a.c

后,再次编译没有问题。细节很重要!很重要!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。