[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: dynamic linking problem with two(!??) luaxlib funcs
- From: Matt Campbell <mattc@...>
- Date: Fri, 24 Feb 2006 13:20:09 -0600
Hello Mark:
Perhaps the problem is that these two lauxlib functions are not used by
the main program or any other lauxlib functions, so they aren't included
in the main program. This is possible, if the AIX linker includes only
the referenced functions in a given object file. The solution, then, is
to make a shared library out of all the files that go in liblua.a, and
link both the main program and your extension library against this
shared library. If I'm not mistaken, this is the recommended way of
doing things anyway, when extensions are loaded as shared libraries. I
hope this helps.
--
Matt Campbell
Lead Programmer
Serotek Corporation
www.freedombox.info