[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: 答复: How to determine if my lua interpreter support dynamic link ?
- From: "lee" <leeyacn@...>
- Date: Sun, 3 May 2009 13:48:10 +0800
Thanks a lot.
I've solved this problem.
:-)
-----邮件原件-----
发件人: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] 代表 Roberto Ierusalimschy
发送时间: 2009年5月3日 4:32
收件人: Lua list
主题: Re: How to determine if my lua interpreter support dynamic link ?
> I install my lua under cygwin through choosing "make ansi".
>
> I want to know if my lua interpreter support dynamic link ?
>
> Book - "PIL" tell me a method below:
>
>
>
> Run "print(loadlib())" under lua prompt, and watch return result
containing
> "bad arguments" information, if so, support dynamic link.
>
> [...]
You seem to be reading the first edition of PiL; it refers to Lua 5.0.
In Lua 5.1 function "loadlib" was renamed "pacakged.loadlib".
-- Roberto