The Lua headers are the ones generated when I do a make on the Lua sources so they should be ok. The Lua interpreter doesn't have any problems with them .

The funny thing is that I don't get any good error messages. It simply says: "ERROR while linking."

I know it has something to do with the Lua.pas file and I've tracked it down a bit further but can't get enough information to actually do anything useful with it. IE: It has something to do with the LibraryName constant. I've tried everything from liblua to liblua5.1.so (including; liblua5.1.a, liblua.a, liblua.so) all of which exist in the lua frameworks folder . I wonder if I need to tell it where to find the framework folder or if I need to include the framework as you do with SDL.

PS: Yes I still have my gmail account and check it quite frequently so that would be the best place to send files.