[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: How should I set up C + Lua modules
- From: Iain Hibbert <plunky@...>
- Date: Fri, 18 Feb 2011 08:35:42 +0000 (GMT)
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..
iain