lua-users home
lua-l archive

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


On Mon, Feb 23, 2009 at 3:25 PM, Daniel Ng <daniel_ng11@lycos.com> wrote:
> I'm running lua 5.1.3 on a Linux 2.6 uClibc system.
>
> After reading this-
>
> http://www.lua.org/pil/8.2.html#C-packages
>
> -I tried the suggestions contained in the above document to test if loadlib()
> works-

Maybe that worked when it was published, but its a bit out of date.

Check the manual:

http://www.lua.org/manual/5.1/manual.html#pdf-package.loadlib

> Lua 5.1.3  Copyright (C) 1994-2008 Lua.org, PUC-Rio
>  print(loadlib())

loadlib is in the package module:

> for k,v in pairs(package) do print(k,v) end
preload table: 0x62c6d0
loadlib function: 0x62c0b0
...

Cheers,
Sam