|
Thanks Alex and FlemmingThe solution was with the -Wl,-E linker option. I thought this was for libraries only!
Graham Henstridge Email: graham@capgo.com On 14/02/2007, at 10:29 PM, Alex Queiroz wrote:
Hallo, On 2/14/07, Graham Henstridge <graham@capgo.com> wrote:So the question is, how can "undefined symbol" come about in my program butnot in lua.c, when both are built against the same static lualib.a?The Lua interpreter is linked in a way that it exports its symbols, so they can be resolved at load time by dynamic modules. You shoud link your program like that. There is a nice page in the wiki that may help: http://lua-users.org/wiki/BuildingModules -- -alex http://www.ventonegro.org/