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.
[mailto:firstname.lastname@example.org] 代表 lee
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:
stdin:1: attempt to call global 'loadlib' (a nil value)
stdin:1: in main chunk
It look like my lua does not support dynamic link, but I am not sure ….