lua-users home
lua-l archive

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

On Thu, 17 Feb 2011, Henderson, Michael D wrote:

> The main program links in liblua.a and I've confirmed that
> lua_pushstring is in there. If I don't run the script that uses requires
> to load the library, everything works nicely.

How do you link with liblua.a?  Using gcc you probably need something like
-Wl,--whole-archive to make sure that all the functions are linked even
though they are not referenced at compile time..