lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 10 Nov 2021, at 10:59, Viacheslav Usov wrote:

> On Tue, Nov 9, 2021 at 7:11 PM Marvin Scholz <> wrote:
>> These functions are marked private even though they are used in luac,
>> causing linking to fail.
> You are not saying what version of Lua you are using, what tools you
> are using to build it, and not even what your build definition is.

Hi, sorry for the lack of info, I had no idea about it being
supposed to be linked statically only, so I thought it was an obvious

It seems this was a side-effect of the import lib patch for the mingw
llvm-based toolchain. I will revise that, and this patch can be dropped
as it does not matter for static linking.

Thanks and sorry for the noise!

> Generally speaking, you are proposing to replace LUAI_FUNC with
> LUA_API for some functions, which, looking at their definitions, may
> only make a difference when Lua is built as a DLL. Whereas, as stated
> by Luiz, luac is supposed to be linked statically.
> So it seems that whatever you are doing is not being done right.
> Cheers,
> V.