[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Advice request to build C functions in a library for Lua5.1
- From: "Alex Queiroz" <asandroq@...>
- Date: Thu, 25 Oct 2007 17:01:16 -0300
Hallo,
On 10/25/07, Crystal Jewels <crystal.jewels@yahoo.com> wrote:
>
> // compile as:
> // gcc mylib.c -shared -L/usr/local/lua5.1/lib -I/usr/local/lua5.1/include
> // -llua -llualib -lm -ldl -o mylib.so
>
You should not link your extensions with the Lua library.
Instead, link the Lua interpreter in way that makes it exports its
symbols.
Cheers,
--
-alex
http://www.ventonegro.org/