lua-users home
lua-l archive

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

On 20.02.2012 02:02, David Rio wrote:
Tet me try to simplify the amount of code necessary to reproduce
the issue:

--------------------$ cat
rm -f *.o *.so
gcc -g -c ldrdlib.c
gcc -g -Wall -shared  -llua -o ldrdlib.o

I don't have access to a Mac, so I can't say for sure, but it seems your gcc invocation is wrong. According to [1] it probably should be something like:
    gcc -g -Wall -bundle -undefined dynamic_lookup -o ldrdlib.o