[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Update the Lua engine in Lua-scripted games with LuaJIT
- From: Adrian Perez <aperez@...>
- Date: Sun, 24 Oct 2010 19:01:12 +0300
On Sun, 24 Oct 2010 23:20:24 +0800
Johnson Lin <email@example.com> wrote:
> 2. vanilla Lua is implemented in ANSI C, so what might be preventing
> builds from gcc to work, when builds from msvc worked? I've tried all
> builds of Lua/LuaJIT mentioned above with some luarocks, which have
> prebuilt binaries linked against lua5.1.dll (such as luasocket),
> all of them worked without problems.
I guess this could have something to do with the fact that GCC and MSVC
could be using different versions/copies of msvcrt.dll, and each one of
the DLLs has different stacks, heaps, etc. This leads to funny things
like the fact that you cannot malloc() memory using one copy of the
library and free() it with the other one -- because their “view” of
what's in memory is different.
For some more info on this, consider reading the “Windows and the C
runtime DLLs (msvc*.dll)” section at the BuildingModules page from
the Lua-users wiki .
Hope this helps :)
Adrian Perez <firstname.lastname@example.org>
Igalia - Free Software Engineering
Description: PGP signature