[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "dynamic libraries not enabled"?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 21 Jan 2011 12:37:15 -0200
> 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")