lua-users home
lua-l archive

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


> I've compiled lua5.1w6 on cygwin and have it up and running with no 
> problems. When I issue in the interpreter the following:
> 
> > print(loadlib())
> 
> I receive the error message:
> 
> stdin:1: bad argument #1 to 'loadlib' (string expected, got no value)
> stack traceback: blah blah blah
> 
> When I did the same with 5.0.2 under cygwin, I get the following message:
> nil      'loadlib' not supporeted absent
> 
> I take this to mean that I could load dynamic libraries under 5.1w6 but 
> not 5.0.2.

No, sorry. The code in 5.1 is a bit different: it checks for the args even
when there is no support for dynamic libraries, sorry. So, to check whether
there is such support, use loadlib("a","b").
--lhf