lua-users home
lua-l archive

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


That does look pretty standard and easy to start from (lmathlib.c).  I
was thinking of a dynamically linked library with a makefile, config,
install, etc setup.  Probably something more akin to your libraries or
all of the libraries over at LuaForge.  I guess I just thought it
might be nice to have a nice ultra simple example or basic starting
point.  I guess the libraries available are already pretty close.  I
had embedded Lua in my C programs, but never the other way around.  I
had a hard time finding a straight-forward module meant as an example
or starting-point, that's all.  No biggie.  In retrospect, it was
pretty easy to use the few libraries I had installed (lxp, expat, etc
from kepler) to figure out what I needed...

Zach Dwiel

On 3/13/07, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> hey, I was looking around for a simple example exporting a few C
> functions and such to lua as a module.  Is something like this already
> available somewhere?

Check lmathlib.c in the Lua sources or my libraries at
        http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/



--
--
dwiel.net