Compiling Lua for D

Mars - at -.-
Wed Feb 15 11:49:12 PST 2012


On Wednesday, 15 February 2012 at 15:02:36 UTC, Mars wrote:
> What's the correct way to do this?

I guess I did it. Using lib, I was able to bind those obj files 
to a lib file.
> lib -c obj_files...

I really have to learn a bit more about this stuff... to 
successfully compile a program with this lib, I have to make 
another one, using LuaD's "C" header files, so all symbols are 
found. I assume I could compile those, and include them in my 
other lib... but why is that? Shouldn't the Lua lib, and the 
importing of those files be enough? I couldn't really wrap my 
head around that yet, if I import something, that's not in my 
project, aren't those files included? Is that why I also have to 
make a lib for it? What exactly happens when importing?


More information about the Digitalmars-d-learn mailing list