lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Sorry for my incorrect test command.

I have correct below:

 

> print(package.loadlib("a", "b"))

nil     dynamic libraries not enabled; check your Lua installation      absent

 

So confirm that my lua not support dynamic libraries.

 

I want to know how to configure related param when installing for support of dynamic libraries.

 

Thanks.

 


发件人: lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br] 代表 lee
发送时间: 2009年5月2 0:01
收件人: 'Lua list'
主题: How to determine if my lua interpreter support dynamic link ?

 

Hi all,

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.

 

But after a try, get:

 

$ lua

Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio

> print(loadlib())

stdin:1: attempt to call global 'loadlib' (a nil value)

stack traceback:

        stdin:1: in main chunk

        [C]: ?

> 

 

It look like my lua does not support dynamic link, but I am not sure ….

 

Thanks.