lua-users home
lua-l archive

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


On Mon, Mar 15, 2010 at 4:33 PM, Valerio Schiavoni
<valerio.schiavoni@gmail.com> wrote:
> Hello Luiz,
> trying to build lmd5, i get this:
>
> gcc -I/Users/veleno/Downloads/lua-5.1.4/src  -DUSE_SHA1_OPENSSL  -O2
>  -c -o lmd5.o lmd5.c

There are no refs to the lua library in your link line.

> gcc -o md5.so -shared lmd5.o -lcrypto
> Undefined symbols:
>  "_lua_pushvalue", referenced from:
>      _luaopen_sha1 in lmd5.o
>      _luaopen_sha1 in lmd5.o