KraMer
06-08-2009, 04:02 AM
The SDK provides a modified Lua library to apparently use a global heap, in the MSVC .lib format. Now I'm using MinGW's G++ to compile my code (need to use Qt and I don't feel like recompiling it as it takes a *lot* of time and the VS integration is barely complete); MinGW can link to those (only if they are static libraries), but the library contains a bunch of crap from MSVC and it's impossible to link to it as G++ doesn't know MSVCish:
fu000001.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000002.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000003.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000004.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000005.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000006.o(.idata$3+0xc): more undefined references to `libmsvcrt_a_iname' follow
nmth000000.o(.idata$4+0x0): undefined reference to `_nm___pctype'
nmth000013.o(.idata$4+0x0): undefined reference to `_nm____mb_cur_max'
So it looks like the library is statically linked to the MS C library and that it uses some extensions too. I need to know if there's any tool to strip the library of MSVC-specific stuff or if IR could provide Lua libraries compiled with MinGW or a patch that I can apply to Lua 5.0 and compile it myself.
fu000001.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000002.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000003.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000004.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000005.o(.idata$3+0xc): undefined reference to `libmsvcrt_a_iname'
fu000006.o(.idata$3+0xc): more undefined references to `libmsvcrt_a_iname' follow
nmth000000.o(.idata$4+0x0): undefined reference to `_nm___pctype'
nmth000013.o(.idata$4+0x0): undefined reference to `_nm____mb_cur_max'
So it looks like the library is statically linked to the MS C library and that it uses some extensions too. I need to know if there's any tool to strip the library of MSVC-specific stuff or if IR could provide Lua libraries compiled with MinGW or a patch that I can apply to Lua 5.0 and compile it myself.