lua-users home
lua-l archive

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


Thanks Alex and Flemming
The 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 but
not 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/