[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Dynamic libraries with lua5.1w6 and cygwin
- From: David Burgess <dburgess@...>
- Date: Sat, 28 May 2005 08:02:40 +1000
> 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
This is because the protocol for calling library loaders has changed
in w6. It currently requires one parameter, the name of the "package"
e.g. print(loadlib('package'))
I have not tried this under cygwin. The idea of luaconf.h is that you
modify it to suit your compiler/OS.
My bet would be to define LUA_DL_DLOPEN
DB