c - 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
我在做什么错才能得到这个错误?
“***缺少分隔符。停止。”
解决方案
使用此cat -e -t -v makefile_name
命令检查带有 . 的制表符^I
和带有 . 的行结尾$
。请查看makefile:4:***缺少分隔符。停止
推荐阅读
- http - 浏览器如何知道网站是否支持 HTTP/3?
- flutter - flutter 使用带有 rootBundle 的 flutter csv 包
- firebase - “ReadCitee”类型不是“String”类型的子类型
- c++ - OpenGL GLFW 无法正确识别窗口调整大小
- ios - Unity iOS 构建问题存档构建成功但模拟器运行失败
- amazon-web-services - 使用 boto3 start/stop_instances 命令启动和停止 ec2 实例所需的权限
- typescript - 获取 d3 比例尺以根据连接数据动态更新?
- r - 将多个文本文件合并为一个 tsv 文件
- angular - 角度测试,socket.io “NullInjectorError:没有 WrappedSocket 的提供者”
- python - PyCharm 如何运行 Python 脚本?