lua-users home
lua-l archive

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

10.01.2012, 04:55, "Sean Conner" <>:
>   I know when making shared object with GCC, you need to add the -fPIC
> option to the command line.  This tells GCC to produce position independent
> code.  So, to compile your code:
> % gcc -shared -fPIC -o
>   The Lua interpreter has been compiled such that all global functions are
> visible to loadable modules so you don't need to compile against the math
> and Lua libraries (unlike a standalone program embedding Lua).

gcc -shared -fPIC -o test.c

Still no luck -- same "undefined symbols" :(
Anyway, my problem is not in Lua spacetime anymore.. so thank you all!

I'll come back with solution.

-- Artur