lua-users home
lua-l archive

Re: [libdl / C/C++ modules] free(): invalid pointer

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


Hallo,
On 12/27/06, Rici Lake <lua@ricilake.net> wrote:
On 26-Dec-06, at 9:40 PM, Mildred wrote:
> My compilation commands :
>
> $ g++ -g -shared luamod.cpp -llua -lm -o luamod.so
> $ gcc -g testlua.c -ldl -llua -lm -o testlua
My guess is that you're ending up with two instances of liblua. That
won't work.
 There is a nice page in the wiki for this:
http://lua-users.org/wiki/BuildingModules
--
-alex
http://www.ventonegro.org/

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