lua-users home
lua-l archive

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


> Thanks Luiz, but no go :-/ The dummy.c file does seem to compile, but
> I get an error right after that:
> 
> www.pastebin.com/WjYF3dvi

dummy.c  is a Lua library not a complete program.
Create a dummy.so for it and then load it into Lua. Something like:
	cc -shared -fPIC -o dummy.so dummy.c
	lua -ldummy
or
	lua
		print(require"dummy")