[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: require .so and call may cause abort trap at free()
- From: Artur Galyamov <artur-pub@...>
- Date: Tue, 10 Jan 2012 05:08:28 +0400
10.01.2012, 04:55, "Sean Conner" <sean@conman.org>:
> 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 test.so
>
> 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.so 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