问题
今天建立了个个helloworld.c 以及Makefile文件.
hellworld.c 中内容如下:
#include<stdio.h>
int main()
{
printf("hello world\n");
return 0;
}
Makefile中的内容如下:
hello:helloword.c
gcc -o hello helloword.c
然后 make 出现如下错误:
makefile:2: *** missing separator. Stop.
整体效果如图下代码所示:
root@ubuntu:~/lesson/chap1/1-1
helloword.c makefile
root@ubuntu:~/lesson/chap1/1-1
makefile:2: *** missing separator. Stop.
解决方法
在gcc -o hello helloword.c
前面用TAB键,而不是空格空格空格….
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)