3 Sep 20:00
Re: LuaRocks with Windows/Visual Studio
From: Ross Berteig <Ross <at> CheshireEng.com>
Subject: Re: LuaRocks with Windows/Visual Studio
Newsgroups: gmane.comp.lang.lua.general
Date: 2008-09-03 18:00:36 GMT
Subject: Re: LuaRocks with Windows/Visual Studio
Newsgroups: gmane.comp.lang.lua.general
Date: 2008-09-03 18:00:36 GMT
Sometime on 9/3/2008, David Given <dg <at> cowlark.com> wrote: >>Ross Berteig wrote: >... >> However, getting MinGW to properly link against MSVCR80.DLL (or >> any of the newer MS CRT flavors) remains a bit of a pain. > >I had absolutely no trouble with this --- I just compiled it and it >worked. There don't even seem to be any dependencies on the MingW >runtime DLL. I'm not well up on Windows toolchains, so I could >well be making a static executable, but the entire program comes >out as a single 266kB binary --- and that includes a Lua interpreter >and 5600 lines of Lua bytecode embedded in it. Right. That is use case #1, where you just want a self-contained, working, Windows-platform-portable binary. In that case, the MinGW version of libc is a collection of aliases for (and thin veneer over) the functions provided by MSVCRT.DLL. That was the CRT for VC6, and is now a system component and installed on Win2K (I think), WinXP, and Vista along with the OS. However, LuaBinaries have moved on to a more current runtime library. So if you want to build either an application containing Lua that can load LuaBinaries-compatible module DLLs, or a DLL for use by a LuaBinaries-compatible host application, then you need to be able to link code against the matching CRT DLL or all kinds of hard to diagnose bugs can occur. To validate the implicit DLL linkage, you need a tool called Dependency Walker, which is included in the MS Platform SDK, and available (with improvements) at http://www.dependencywalker.com/.(Continue reading)
RSS Feed