Re: "dynamic libraries not enabled"?
[
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: 2011年1月21日 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")