lua-users home
lua-l archive

Re: Advice request to build C functions in a library for Lua5.1

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


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/

AltStyle によって変換されたページ (->オリジナル) /