(1)错误:
make: hello:hello.o: Command not found
make: *** [Makefile:4:all ]Error 127
图 15 错误1
错误原因: hello: ${H}
${CC} $^ -o $@
hello.o:hello.c
这三行代码均多了”tap”,删除即可。
图 16 错误1修正结果
(2)错误:Nothing to be done for ’all'
图 17 错误2
错误原因:这句提示是说明你已经编译好了,而且没有对代码进行任何改动。若想重新编译,可以先删除以前编译产生的目标文件.
解决: make clean 清除安装时留下的文件
图 18 make clean
图 19 make后,运行hello结果