Makefile:6:***缺少分隔符.停止 [英] Makefile:6: *** missing separator. Stop

查看:536
本文介绍了Makefile:6:***缺少分隔符.停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HEADERS = schedule.h 

default: papcmp

program.o: schedule.c $(HEADERS)
    gcc -g -lnuma -lm -pthread schedule.c -lutil -lz -o schedule.o

program: schedule.o
    gcc schedule.o -o papcmp

clean:
    -rm -f schedule.o
    -rm -f papcmp
    -rm -f *.log dump.gz

这是我第一次尝试创建Make文件.看起来好像有错误.你能帮我吗?根据输出, bold 中的行有错误.

This is the first time i'm trying to create a make file. and it looks like there is an error. Could you help me with it? The line that is in bold has the error according to the output.

推荐答案

对于空格与制表符,非常挑剔.命令行绝对必须使用单个制表符和 not 空格进行缩进.您可能需要调整编辑器以生成制表符.

Make is very picky about spaces vs. tabs. Command lines absolutely must be indented with a single tab, and not spaces. You may need to adjust your editor to generate tab characters.

这篇关于Makefile:6:***缺少分隔符.停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆