[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Dynamic libraries with lua5.1w6 and cygwin
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 28 May 2005 09:52:53 -0300
> 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