注:除了tab分隔符問題,也要檢查自己電腦tab與linux系統中的tab是否一致,有的tab是4個空格,有的是8個空格。
1、makefile文件中
我們在編寫完makefile,然后在終端中
$make
出現“makefile:2: *** 遺漏分隔符 。 停止。”問題,原因是在編寫makefile文件時:
all:
gcc -o helloworld helloworld.c
fresh:
rm -rf Makefile
clean:
rm -rf helloworld helloworld.o
install:
cp helloworld /usr/bin
uninstall:
rm -rf /usr/bin/helloworld
gcc、rm、cp前面是tab分割符,不能用空格,否則會出現:
“makefile:2: *** 遺漏分隔符 。 停止。”
“makefile:4: *** 遺漏分隔符 。 停止。”
“makefile:6: *** 遺漏分隔符 。 停止。”
“makefile:8: *** 遺漏分隔符 。 停止。”
“makefile:10: *** 遺漏分隔符 。 停止。”
這樣的錯誤提示。
參考鏈接:http://blog.sina.com.cn/s/blog_6aaa7e840100qm6q.html