lua-users home
lua-l archive

Re: Building Lua 5.3 from Lua.org on FreeBSD

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


> > Can you describe a simple test for dynamic library support?
> 
> Save this file to dummy.c:
> 
> [...]
I think there is a simpler way. Just run the following:
$ lua
> = package.loadlib("a", "b")
If the error message is something about not finding "a" (e.g.,
"a: cannot open shared object file"), then you have DLL support.
Otherwise, the error message is something like "dynamic libraries
not enabled".
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /