|
Ok, I added "-undefined dynamic_lookup" to the link line and removed -llua and now everything works fine. I'll update the wiki page: http://lua-users.org/wiki/BuildingModules Currently it suggests that building on OSX is the same as on Linux GCC, but OS X has the unique requirement that you pass: -undefined dynamic_lookup ...even when you're compiling with -shared, which Linux does not.
I was just going to suggest -undefined dynamic_lookup, glad you found the problem :-)
- Peter Odding