首页 > 解决方案 > Makefile:缺少分隔符停止,但使用制表符?

问题描述

这是我的生成文件:

build: Starter.o Executor.o
    g++ Starter.o Executor.o -o Starter
Starter.o: Starter.c
    g++ -c Starter.c
Executor.o: Executor.c Executor.h
    g++ -c Executor.c
clean:
    rm *.o Starter 

我在做什么错才能得到这个错误?

“***缺少分隔符。停止。”

标签: cmakefilebuild

解决方案


使用此cat -e -t -v makefile_name命令检查带有 . 的制表符^I和带有 . 的行结尾$。请查看makefile:4:***缺少分隔符。停止


推荐阅读