[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: NEWBIE Question: LUA wait() function?
- From: gary ng <garyng2000@...>
- Date: Tue, 11 Mar 2008 23:30:59 -0700 (PDT)
running on windows can complicate the matter because
of the multiple MSVCRT issue, unlike on *nix.
--- Miles Bader <firstname.lastname@example.org> wrote:
> "Rolf" <email@example.com> writes:
> > 2. I don't think that I can add any libraries
> because LUA is somehow
> > built-in into the EccoExt executable (LUA is not
> separately installed).
> Lua in general supports dynamic loading of C code,
> so you may be able to
> load an external library, even if you're using a
> pre-compiled embedded
> The usual way to do that is something like:
> local mylib = require "mylib"
> which, if it can't find an appropriate lua library
> (mylib.lua or so),
> will look for an appropriate C dynamic object,
> "mylib.dll" (windows) or
> "mylib.so" (linux).
> Sorry, I don't know how to _make_ an appropriate
> .dll file (I only know
> how to do it under linux) though.
> My spirit felt washed. With blood. [Eli Shin, on
> "The Passion of the Christ"]
Never miss a thing. Make Yahoo your home page.