google

Linux C 编程-makefile 文件 要在每个命令前要加TAB

最近在学 Linux C 编程,编写了以下test.c文件,

/*文件   test.c*/
#include   “stdio.h”

int   main()
{
printf(“Hello   world!\n”);
}

#文件:   makefile
test:test.o
gcc   -o   test   test.o
test.o:test.c
gcc   -c   test.c

当我在当前目录下 执行   make    ,
shell  提示错误:   makefile:4:   ***   missing   separator.     Stop.
我查资料得知:
missing   separator
如下的错误信息:
makefile:2:missing   separator.   Stop.
或:
makefile:2:missing   separator   (did   you   mean   TAB   instead   of   8   spaces?).   Stop.
通常代表你的命令脚本以空格代替了跳格。
以文字来解释的话,就是make   想要查找一个make   分隔符,比如:、=   或一个跳格符,
但是找不到。它所找到的是它不了解的东西。

但我不明白   makefile   里哪里需要使用   Table   时我用的   space   。

我到谷歌网站Google了一下,发现 在makefile 文件里每个命令前要加TAB。

即是

#文件:   makefile

test:test.o
[TAB]gcc   -o   test   test.o
test.o:test.c
[TAB]gcc   -c   test.c

保存后,重新执行make命令,

使用ls命令会发现当前文件夹多了一个test可执行文件。

在shell中执行./test  ,运行test文件

可得结果:

Hello,World!

END

将masterlinux.cn添加到Google

Master Linux.cn 网站建好了。现在要做什么呢?

在Google上搜索”网站建好之后 google”

http://www.google.cn/search?hl=zh-CN&newwindow=1&q=%E7%BD%91%E7%AB%99%E5%BB%BA%E5%A5%BD%E4%B9%8B%E5%90%8E+google&btnG=Google+%E6%90%9C%E7%B4%A2&meta=&aq=f&oq=

找到一个答案:把网站masterlinux.cn提交给Google搜索引擎,网址如下

http://www.google.com/intl/zh-CN/add_url.html

打开后,很简洁的页面,只有网址,评论和验证码需要填,评论可以不填。截图如下:

将网站masterlinux.cn加入Google搜索引擎

将网站masterlinux.cn加入Google搜索引擎

然后确定,提示:

衷心感谢!

已经成功添加了您的网址。

您的网站网址已成功添加到我们要抓取的网址列表中。请注意,我们无法将提交的所有网址都添加到索引中,对于何时或是否显示这些网址,也不能作出任何预测或保证。

您可能会对 Google Sitemaps 计划感兴趣,它会将您网站上所有的网址提交给 Google 索引并在网页更新时自动通知我们。

成功向Google提交MasterLinux.cn网址

成功向Google提交MasterLinux.cn网址

现在GoogleBot 机器人还没有到网站上抓取,

先去Google验证一下,在搜索框输入 “site:masterlinux.cn”,然后回车,果然没有任何结果。

在Google中搜索"site:masterlinux.cn" 没有结果

在Google中搜索"site:masterlinux.cn" 没有结果

END