看板mud
标 题Re: 请问关於编译错误
发信站中山计中美丽之岛 (Fri Mar 24 09:26:49 2006)
转信站ptt!ctu-reader!ctu-gate!news.nctu!news.nsysu!Formosa
> ==> [email protected] (短发有点阳光) 的文章中提到:
> 出现 LINE153:End of life in texe block 是什麽意思
> 我编译的是lpmud文件
> 谢谢
我大概知道你的意思。
我用例子说明...
> more test.c
:::::::::::::: /open/test.c ::::::::::::::
void test_func()
{
write(@DESC
test
);
return ;
}
眼尖的你会发现在第四行下面少了一个 DESC,这时 update 它
就会发现...
> update test.c
编译时段错误:
/open/test.c line 8: End of file in text block at the end of the file
^^^^^^^^^^^^^^^^^^^^^^^^^
简单的说就是你用 write、say、notify_fail、receive、shout
这些函数,要去"秀"一段 string 时,没有给它应有的结尾符号
(有头无尾),稍微去 debug 一下应该就会知道了。
PS上面你贴的Line153行,实际上那一行并不是真正 bug 之所在
,通常是指Line153行所在的那个函数or副程式内的某一行有
错。(你可能漏了什麽符号没加)
--
* Origin: 中山大学-美丽之岛BBS * From: 61.225.19.61