[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: require .so and call may cause abort trap at free()
- From: Ignacio BurgueÃo <ignaciob@...>
- Date: Mon, 9 Jan 2012 22:00:21 -0200
2012/1/9 Artur Galyamov <email@example.com>
If I do main() && luaL_newstate() && luaopen_test() && luaL_dostring() in test.c, it's all ok.
It seems that problem is in test.so itselfâ Is my test.so build process okay?
$ cc test.c -shared -o test.so -llua -lm
I think that is the problem. You shouldn't link with -llua in your .so.