lua-users home
lua-l archive

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

On 01/07/2022 14:09, Luiz Henrique de Figueiredo wrote:

Multiple definitions of a global variable are undefined behavior in C.
I'm surprised that you don't get link errors. I do in macOS.

This is a small library "" containing just one C-file.
So I can hardly imagine how the linker can issue an error.

Here is what ldd shows for (0x00007ffe6e71d000) => /lib/x86_64-linux-gnu/ (0x00007f103188e000)
    /lib64/ (0x00007f1031a9e000)