[转贴]Makefile:出错信息

在编写makefile后,make项目时提示错误“Makefile:3: *** missing separator. Stop.”

偶然发现这个错误是有makefile中的tab的长度导致的,在makefile中的命令需要以tab键开始,

在.vimrc文件中发现没有设置tab键的默认长度,然后在.vimrc中添加如下配置后,

set tabstop=4

便可以执行makefile了, 但是后来发现不管再次把tabstop设置成8还是注释掉这个配置,makefile都可以执行,很奇怪,不知道为什么?

posted @ 2013-01-18 15:46  shinedream  阅读(131)  评论(0编辑  收藏  举报