Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-2024-08-06· OpenAIAi2 WildChat-4.8M (AI2)

makefile for building Lua see ../INSTALL for installation instructions see ../Makefile…

  1. User

    makefile for building Lua

    see ../INSTALL for installation instructions

    see ../Makefile and luaconf.h for further customization

    == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================

    Your platform. See PLATS for possible values.

    PLAT= none

    CC?= gcc CFLAGS= -O2 -Wall (MYCFLAGS)AR=arrcuRANLIB=ranlibRM=rm−fLIBS=−lm(MYCFLAGS) AR= ar rcu RANLIB= ranlib RM= rm -f LIBS= -lm (MYLIBS)

    MYCFLAGS= MYLDFLAGS= MYLIBS=

    == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========

    PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris

    LUA_A= liblua.a CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o
    lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o
    lundump.o lvm.o lzio.o strbuf.o fpconv.o LIB_O= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o
    lstrlib.o loadlib.o linit.o lua_cjson.o lua_struct.o lua_cmsgpack.o
    lua_bit.o

    LUA_T= lua LUA_O= lua.o

    LUAC_T= luac LUAC_O= luac.o print.o

    ALL_O= (COREO)(CORE_O) (LIB_O) (LUAO)(LUA_O) (LUAC_O) ALL_T= (LUAA)(LUA_A) (LUA_T) (LUACT)ALLA=(LUAC_T) ALL_A= (LUA_A)

    default: $(PLAT)

    all: $(ALL_T)

    o: $(ALL_O)

    a: $(ALL_A)

    (LUAA):(LUA_A): (CORE_O) (LIBO)(LIB_O) (AR) @@ (CORE_O) (LIB_O) # DLL needs all object files (RANLIB) $@

    (LUAT):(LUA_T): (LUA_O) (LUAA)(LUA_A) (CC) -o @@ (MYLDFLAGS) (LUAO)(LUA_O) (LUA_A) $(LIBS)

    (LUACT):(LUAC_T): (LUAC_O) (LUAA)(LUA_A) (CC) -o @@ (MYLDFLAGS) (LUACO)(LUAC_O) (LUA_A) $(LIBS)

    clean: (RM)(RM) (ALL_T) $(ALL_O)

    depend: @(CC)(CC) (CFLAGS) -MM l*.c print.c

    echo: @echo "PLAT = (PLAT)"@echo"CC=(PLAT)" @echo "CC = (CC)" @echo "CFLAGS = (CFLAGS)"@echo"AR=(CFLAGS)" @echo "AR = (AR)" @echo "RANLIB = (RANLIB)"@echo"RM=(RANLIB)" @echo "RM = (RM)" @echo "MYCFLAGS = (MYCFLAGS)"@echo"MYLDFLAGS=(MYCFLAGS)" @echo "MYLDFLAGS = (MYLDFLAGS)" @echo "MYLIBS = $(MYLIBS)"

    convenience targets for popular platforms

    none: @echo "Please choose a platform:" @echo " $(PLATS)"

    aix: $(MAKE) all CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS="-brtl -bexpall"

    ansi: $(MAKE) all MYCFLAGS=-DLUA_ANSI

    bsd: $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E"

    freebsd: $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lreadline"

    generic: $(MAKE) all MYCFLAGS=

    linux: $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"

    macosx: $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"

    use this on Mac OS X 10.3-

    $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX

    mingw: (MAKE)"LUAA=lua51.dll""LUAT=lua.exe" "AR=(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \ "AR=(CC) -shared -o" "RANLIB=strip --strip-unneeded"
    "MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe $(MAKE) "LUAC_T=luac.exe" luac.exe

    posix: $(MAKE) all MYCFLAGS=-DLUA_USE_POSIX

    solaris: $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl"

    list targets that do not create files (but not all makes understand .PHONY)

    .PHONY: all $(PLATS) default o a clean depend echo none

    DO NOT DELETE

    lapi.o: lapi.c lua.h luaconf.h lapi.h lobject.h llimits.h ldebug.h
    lstate.h ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h
    lundump.h lvm.h lauxlib.o: lauxlib.c lua.h luaconf.h lauxlib.h lbaselib.o: lbaselib.c lua.h luaconf.h lauxlib.h lualib.h lcode.o: lcode.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h
    lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h lgc.h
    ltable.h ldblib.o: ldblib.c lua.h luaconf.h lauxlib.h lualib.h ldebug.o: ldebug.c lua.h luaconf.h lapi.h lobject.h llimits.h lcode.h
    llex.h lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h
    lfunc.h lstring.h lgc.h ltable.h lvm.h ldo.o: ldo.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h
    lzio.h lmem.h ldo.h lfunc.h lgc.h lopcodes.h lparser.h lstring.h
    ltable.h lundump.h lvm.h ldump.o: ldump.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h
    lzio.h lmem.h lundump.h lfunc.o: lfunc.c lua.h luaconf.h lfunc.h lobject.h llimits.h lgc.h lmem.h
    lstate.h ltm.h lzio.h lgc.o: lgc.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h
    lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h linit.o: linit.c lua.h luaconf.h lualib.h lauxlib.h liolib.o: liolib.c lua.h luaconf.h lauxlib.h lualib.h llex.o: llex.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h ltm.h
    lzio.h lmem.h llex.h lparser.h lstring.h lgc.h ltable.h lmathlib.o: lmathlib.c lua.h luaconf.h lauxlib.h lualib.h lmem.o: lmem.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h
    ltm.h lzio.h lmem.h ldo.h loadlib.o: loadlib.c lua.h luaconf.h lauxlib.h lualib.h lobject.o: lobject.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h
    ltm.h lzio.h lmem.h lstring.h lgc.h lvm.h lopcodes.o: lopcodes.c lopcodes.h llimits.h lua.h luaconf.h loslib.o: loslib.c lua.h luaconf.h lauxlib.h lualib.h lparser.o: lparser.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h
    lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h
    lfunc.h lstring.h lgc.h ltable.h lstate.o: lstate.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h
    ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h llex.h lstring.h ltable.h lstring.o: lstring.c lua.h luaconf.h lmem.h llimits.h lobject.h lstate.h
    ltm.h lzio.h lstring.h lgc.h lstrlib.o: lstrlib.c lua.h luaconf.h lauxlib.h lualib.h ltable.o: ltable.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h
    ltm.h lzio.h lmem.h ldo.h lgc.h ltable.h ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h ltm.o: ltm.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h lzio.h
    lmem.h lstring.h lgc.h ltable.h lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h luac.o: luac.c lua.h luaconf.h lauxlib.h ldo.h lobject.h llimits.h
    lstate.h ltm.h lzio.h lmem.h lfunc.h lopcodes.h lstring.h lgc.h
    lundump.h lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h
    llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h lundump.h lvm.o: lvm.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h
    lzio.h lmem.h ldo.h lfunc.h lgc.h lopcodes.h lstring.h ltable.h lvm.h lzio.o: lzio.c lua.h luaconf.h llimits.h lmem.h lstate.h lobject.h ltm.h
    lzio.h print.o: print.c ldebug.h lstate.h lua.h luaconf.h lobject.h llimits.h
    ltm.h lzio.h lmem.h lopcodes.h lundump.h

    (end of Makefile)

    这个是生成liblua.a文件的吗?

  2. Assistant

    是的,这个Makefile的主要目标之一是生成静态库文件 liblua.a。在行 $(LUA_A): $(CORE_O) $(LIB_O) 中,$(LUA_A) 代表 liblua.a 文件,它依赖于 $(CORE_O) 和 $(LIB_O) 两个对象文件集合。

    具体来说,下面是创建 liblua.a 这个静态库文件的命令:

    $(AR) $@ $(CORE_O) $(LIB_O) # DLL needs all object files
    $(RANLIB) $@
    

    这个命令首先使用 ar rcu (定义在上面 AR=ar rcu)把所有的目标文件 $(CORE_O) 和 $(LIB_O) 打包到 liblua.a 中。随后通过 ranlib 更新库文件的索引以提高链接效率。

    liblua.a 是一个可重用的静态库文件,通常在构建其他应用程序(如 lua 和 luac 可执行文件时)作为静态链接库被链接进去。

  3. User

    Please do make PLATFORM where PLATFORM is one of these: aix ansi bsd freebsd generic linux macosx mingw posix solaris See INSTALL for complete instructions. 这个是什么意思?

  4. Assistant

    这段消息是在提示你如何使用这个 Makefile 来构建 Lua 项目。Makefile 支持多种平台,它希望你在执行 make 命令时指定一个构建平台,选择一个与你的操作系统相匹配的平台。

    你需要执行下面的命令,其中 PLATFORM 替换成你的操作系统对应的值:

    make PLATFORM
    

    具体可选择的 PLATFORM 值包括:

    • aix:用于 IBM AIX 系统
    • ansi:标准 ANSI C 编译环境
    • bsd:一般用于 BSD 系统
    • freebsd:专用于 FreeBSD 系统
    • generic:通用构建
    • linux:用于 Linux 系统
    • macosx:用于 macOS 系统
    • mingw:用于 MinGW(Windows)
    • posix:用于 POSIX 兼容系统
    • solaris:用于 Solaris 系统

    例如,如果你是在 Linux 系统上,你应该运行:

    make linux
    

    这将使用为 Linux 系统预设的编译器选项和库进行构建。有关更详细的安装和构建说明,你可以参考项目目录下的 INSTALL 文件。

  5. User

    ndefined reference to `__imp_lua_pushvalue' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:52: lua51.dll] Error 1 make[2]: Leaving directory '/d/githubWork/redis-Windows/redis-7.2.3/deps/lua/src' make[1]: *** [Makefile:108: mingw] Error 2 make[1]: Leaving directory '/d/githubWork/redis-Windows/redis-7.2.3/deps/lua/src' make: *** [Makefile:56: mingw] Error 2 怎么解决?

  6. Assistant

    在使用 MinGW 构建 Lua 时,你遇到的链接错误 undefined reference to '__imp_lua_pushvalue' 通常与动态库的导出或包含路径设置不正确有关。以下是一些可能的解决方法:

    1. 确保符号导出正确:

      • 如果你正在构建一个 DLL(例如 lua51.dll),确保在编译时定义了 LUA_BUILD_AS_DLL。这使得正确的符号导出实现。例如,在 Makefile 中使用:
        MYCFLAGS=-DLUA_BUILD_AS_DLL
        
    2. 导入库问题:

      • 确保链接时使用了正确的导入库(.a 或 .lib 文件)。如果你的项目需要链接到 Lua 的 DLL,那么可能需要同时链接到 Lua 生成的导入库。
    3. 检查路径和库位置:

      • 确保所有引用的库的位置都是正确的,并且它们都已经构建成功。检查链接命令中包含了正确路径的正确库。
    4. 增大警告信息:

      • 使用 -Wl,--verbose 选项来查看链接器的详细信息。这可能会给出更详细的错误信息。
    5. 重建 Lua:

      • 可能的原因是之前库的生成不正确。尝试清理项目并重建一遍。使用 make clean 删除任何以前的构建结果,然后重新运行 make mingw。
    6. 确保环境一致:

      • 确保你所使用的 MinGW 工具链和其他依赖项都是兼容且正确版本的,避免由于不兼容性导致的链接错误。
    7. 手动检查其他错误:

      • 最后,手动检查其他可能导致问题的代码配置或变更,特别是从不同源或者库版本引入的新代码。

    如果以上步骤无法解决问题,请提供更多的编译详细信息,以便更好地诊断和解决问题。

  7. User

    make mingw cd src && make mingw make[1]: Entering directory '/d/githubWork/redis-Windows/redis-7.2.3/deps/lua/src' make "LUA_A=lua51.dll" "LUA_T=lua.exe"
    "AR=cc -shared -o" "RANLIB=strip --strip-unneeded"
    "MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe make[2]: Entering directory '/d/githubWork/redis-Windows/redis-7.2.3/deps/lua/src' cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lua.o lua.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lapi.o lapi.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lcode.o lcode.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ldebug.o ldebug.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ldo.o ldo.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ldump.o ldump.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lfunc.o lfunc.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lgc.o lgc.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o llex.o llex.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lmem.o lmem.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lobject.o lobject.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lopcodes.o lopcodes.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lparser.o lparser.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lstate.o lstate.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lstring.o lstring.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ltable.o ltable.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ltm.o ltm.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lundump.o lundump.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lvm.o lvm.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lzio.o lzio.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o strbuf.o strbuf.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o fpconv.o fpconv.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lauxlib.o lauxlib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lbaselib.o lbaselib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ldblib.o ldblib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o liolib.o liolib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lmathlib.o lmathlib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o loslib.o loslib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ltablib.o ltablib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lstrlib.o lstrlib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o loadlib.o loadlib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o linit.o linit.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lua_cjson.o lua_cjson.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lua_struct.o lua_struct.c In file included from lua_struct.c:30: lua_struct.c: In function ‘getnum’: lua_struct.c:93:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] 93 | if (!isdigit(*fmt)) / no number? */ | ^~~~~ lua_struct.c:101:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 101 | } while (isdigit(**fmt)); | ^~~~~ cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lua_cmsgpack.o lua_cmsgpack.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lua_bit.o lua_bit.c cc -shared -o lua51.dll lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o strbuf.o fpconv.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o lua_cjson.o lua_struct.o lua_cmsgpack.o lua_bit.o # DLL needs all object files /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x7b): undefined reference to __imp_lua_touserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xb9): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xcb): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf4): undefined reference to __imp_luaL_checkinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x145): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x176): undefined reference to __imp_lua_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1a5): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1cb): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1e5): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1f3): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x202): undefined reference to __imp_lua_insert' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x21b): undefined reference to __imp_lua_pcall' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x23b): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x259): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x3b2): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x3c2): undefined reference to __imp_lua_newuserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x3e3): undefined reference to __imp_lua_pushcclosure' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x3fc): undefined reference to __imp_lua_setfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x40c): undefined reference to __imp_lua_setmetatable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x5da): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x5e1): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x626): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x631): undefined reference to __imp_lua_pushlightuserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x649): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x6fe): undefined reference to __imp_lua_pushcclosure' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x708): undefined reference to __imp_lua_setfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x720): undefined reference to __imp_lua_getfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x782): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x7c0): undefined reference to __imp_luaL_checkoption' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x7e0): undefined reference to __imp_lua_pushstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x7fe): undefined reference to __imp_lua_pushboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x812): undefined reference to __imp_lua_toboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xe25): undefined reference to __imp_lua_tolstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf1b): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf2d): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf50): undefined reference to __imp_lua_touserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf7f): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf94): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x11fe): undefined reference to __imp_lua_tonumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x12f9): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1304): undefined reference to __imp_lua_typename' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x131e): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x13e5): undefined reference to __imp_lua_pushlightuserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x143a): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x146d): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x148c): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1493): undefined reference to __imp_lua_rawset' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x149a): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x160d): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1626): undefined reference to __imp_lua_rawseti' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x167e): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x16eb): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1709): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1727): undefined reference to __imp_lua_pushboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x174f): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1769): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1777): undefined reference to __imp_lua_touserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x179b): undefined reference to __imp_luaL_checklstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x183c): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1890): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x18ac): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x18d8): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x191a): undefined reference to __imp_lua_touserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1947): undefined reference to __imp_lua_typename' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1978): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x19de): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x19e5): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x19fc): undefined reference to __imp_lua_next' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1a32): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1a63): undefined reference to __imp_lua_tonumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1ae0): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1b27): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1b70): undefined reference to __imp_lua_typename' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1b86): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1caa): undefined reference to __imp_lua_toboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1e92): undefined reference to __imp_lua_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1f47): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1f58): undefined reference to __imp_lua_rawgeti' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x2069): undefined reference to __imp_lua_typename' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x2083): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x20b1): undefined reference to __imp_lua_touserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x20c6): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x20e0): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x211d): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x217c): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x30): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x185): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x1de): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x217): undefined reference to __imp_lua_pushfstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x230): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x26d): undefined reference to __imp_luaL_checklstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x291): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x33d): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x3c6): undefined reference to __imp_luaL_checklstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x406): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x417): undefined reference to __imp_luaL_buffinit' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x433): undefined reference to __imp_luaL_prepbuffer' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x558): undefined reference to __imp_luaL_pushresult' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x591): undefined reference to __imp_luaL_checknumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x5ef): undefined reference to __imp_luaL_addlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x63b): undefined reference to __imp_luaL_addlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x685): undefined reference to __imp_luaL_checknumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x6e4): undefined reference to __imp_luaL_addlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x729): undefined reference to __imp_luaL_checknumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x784): undefined reference to __imp_luaL_addlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x7a5): undefined reference to __imp_luaL_addlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x7ef): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x851): undefined reference to __imp_luaL_prepbuffer' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x897): undefined reference to __imp_luaL_prepbuffer' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x8c3): undefined reference to __imp_luaL_checklstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x900): undefined reference to __imp_luaL_optinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x936): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x9b8): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xa4d): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xb19): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xb66): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xbbf): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xbea): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xbf8): undefined reference to __imp_lua_tonumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xc1d): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xc56): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xcf2): undefined reference to __imp_lua_isnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xd41): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xd61): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xd94): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xdd4): undefined reference to __imp_luaL_register' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xb): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x20): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x2f): undefined reference to __imp_lua_insert' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x45): undefined reference to __imp_lua_pcall' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x65): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xd7): undefined reference to __imp_lua_getallocf' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x10b): undefined reference to __imp_lua_getallocf' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1a4): undefined reference to __imp_lua_getallocf' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x21f): undefined reference to __imp_lua_getallocf' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x678): undefined reference to __imp_lua_tolstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x6b3): undefined reference to __imp_lua_toboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x703): undefined reference to __imp_lua_tointeger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x733): undefined reference to __imp_lua_tonumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x782): undefined reference to __imp_lua_tointeger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7be): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7d6): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7df): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7e6): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7ed): undefined reference to __imp_lua_next' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7f4): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7fb): undefined reference to __imp_lua_tonumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x8f7): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x965): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x99a): undefined reference to __imp_lua_toboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x9bf): undefined reference to __imp_lua_tolstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xa0e): undefined reference to __imp_lua_objlen' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xa34): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xa40): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xa47): undefined reference to __imp_lua_gettable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xae8): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xaef): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xafc): undefined reference to __imp_lua_next' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xb03): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xb47): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xbf5): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xc11): undefined reference to __imp_lua_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xc30): undefined reference to __imp_lua_getallocf' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xc6a): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xc71): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xc84): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xd2c): undefined reference to __imp_lua_concat' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xd6f): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xdb5): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xdc1): undefined reference to __imp_lua_settable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xe6c): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xff5): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x103a): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1083): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x10c0): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x10f0): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x112b): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1155): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1187): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x11b7): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x11eb): more undefined references to __imp_lua_pushinteger' follow /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x127e): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x12c7): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x12e7): undefined reference to __imp_lua_pushboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1305): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x132a): undefined reference to __imp_lua_pushboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1359): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1387): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x13a6): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1419): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x142e): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x143a): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1441): undefined reference to __imp_lua_settable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1512): undefined reference to __imp_luaL_checklstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x15b7): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1625): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1642): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1650): undefined reference to __imp_lua_insert' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1684): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x16a7): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x16cc): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1713): undefined reference to __imp_luaL_optinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x171f): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x172c): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1761): undefined reference to __imp_luaL_checkinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1775): undefined reference to __imp_luaL_optinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1781): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x178e): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x17cf): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x17d6): undefined reference to __imp_lua_pushcclosure' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x17dd): undefined reference to __imp_lua_setfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1807): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x18c7): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x18dc): undefined reference to __imp_lua_setfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1917): undefined reference to __imp_luaopen_cmsgpack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x191e): undefined reference to __imp_lua_getfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1925): undefined reference to __imp_lua_pushcclosure' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x192c): undefined reference to __imp_lua_setfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1970): undefined reference to `__imp_lua_pushvalue' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:52: lua51.dll] Error 1 make[2]: Leaving directory '/d/githubWork/redis-Windows/redis-7.2.3/deps/lua/src' make[1]: *** [Makefile:108: mingw] Error 2 make[1]: Leaving directory '/d/githubWork/redis-Windows/redis-7.2.3/deps/lua/src' make: *** [Makefile:56: mingw] Error 2怎么解决?

  8. Assistant

    这个错误信息表示在链接生成 lua51.dll 时出现了未定义引用错误,通常是由于缺少必要的库文件或者库路径不正确。以下是一些可能的解决方法:

    1. 检查库路径:

      • 确保你的编译器和链接器能够找到 Lua 所需的库文件。如果 lua_cjson 和其他扩展依赖于另一个 Lua 库,你需要确保这些库文件在你的库路径中存在。
    2. 确保文件编译顺序:

      • Lua 库的实现文件在使用它的其他实现文件之前预先编译。确保所有相关目标文件正确编译。
    3. 链接顺序:

      • 在 make 中明确指定库文件,可能需要调整链接顺序,确保 Lua 库在依赖于它的模块之前被链接。
    4. 检查 __imp_ 前缀:

      • __imp_ 前缀表明动态库的相关符号问题,可能需要确保编译时正确设置了 -DLUA_BUILD_AS_DLL 并且对应的动态库导出符号设置正常。
    5. 手动创建导入库:

      • 如果 lua51.dll 正在创建而非已存在,则可能需要生成对应的导入库。检查是否有 .lib 或 .a 文件,并使用工具如 dlltool 根据你的 DLL 创建导入库。
    6. 静态链接:

      • 如果可以,尝试编译和链接到 Lua 的静态库版本,而不是共享库版本,这样可以避免运行时的动态链接问题。
    7. 完整的编译命令:

      • 通过 -Wl,--verbose 获取更多的链接器输出消息,以了解出错点。
    8. 检查源码兼容性:

      • 确认 lua_cjson、lua_struct 和 lua_cmsgpack 的源码与当前 Lua 版本兼容。有时不兼容的 API 版本可能会导致这种错误。

    如若以上建议尚未解决问题,可能需要提供更多具体的信息或相关文件,以便于更详细的分析和排查。

  9. User

    make mingw cd src && make mingw make[1]: Entering directory '/d/githubWork/redis-Windows/redis-7.2.3/deps/lua/src' make "LUA_A=lua51.dll" "LUA_T=lua.exe" "AR=cc -shared -o" "RANLIB=strip --strip-unneeded" "MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe make[2]: Entering directory '/d/githubWork/redis-Windows/redis-7.2.3/deps/lua/src' cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lua.o lua.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lapi.o lapi.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lcode.o lcode.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ldebug.o ldebug.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ldo.o ldo.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ldump.o ldump.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lfunc.o lfunc.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lgc.o lgc.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o llex.o llex.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lmem.o lmem.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lobject.o lobject.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lopcodes.o lopcodes.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lparser.o lparser.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lstate.o lstate.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lstring.o lstring.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ltable.o ltable.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ltm.o ltm.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lundump.o lundump.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lvm.o lvm.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lzio.o lzio.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o strbuf.o strbuf.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o fpconv.o fpconv.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lauxlib.o lauxlib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lbaselib.o lbaselib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ldblib.o ldblib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o liolib.o liolib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lmathlib.o lmathlib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o loslib.o loslib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o ltablib.o ltablib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lstrlib.o lstrlib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o loadlib.o loadlib.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o linit.o linit.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lua_cjson.o lua_cjson.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lua_struct.o lua_struct.c In file included from lua_struct.c:30: lua_struct.c: In function ‘getnum’: lua_struct.c:93:16: warning: array subscript has type ‘char’ [-Wchar-subscripts] 93 | if (!isdigit(*fmt)) / no number? */ | ^~~~~ lua_struct.c:101:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 101 | } while (isdigit(**fmt)); | ^~~~~ cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lua_cmsgpack.o lua_cmsgpack.c cc -O2 -Wall -DLUA_BUILD_AS_DLL -c -o lua_bit.o lua_bit.c cc -shared -o lua51.dll lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o strbuf.o fpconv.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o lua_cjson.o lua_struct.o lua_cmsgpack.o lua_bit.o # DLL needs all object files /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x7b): undefined reference to __imp_lua_touserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xb9): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xcb): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf4): undefined reference to __imp_luaL_checkinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x145): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x176): undefined reference to __imp_lua_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1a5): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1cb): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1e5): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1f3): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x202): undefined reference to __imp_lua_insert' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x21b): undefined reference to __imp_lua_pcall' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x23b): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x259): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x3b2): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x3c2): undefined reference to __imp_lua_newuserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x3e3): undefined reference to __imp_lua_pushcclosure' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x3fc): undefined reference to __imp_lua_setfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x40c): undefined reference to __imp_lua_setmetatable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x5da): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x5e1): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x626): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x631): undefined reference to __imp_lua_pushlightuserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x649): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x6fe): undefined reference to __imp_lua_pushcclosure' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x708): undefined reference to __imp_lua_setfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x720): undefined reference to __imp_lua_getfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x782): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x7c0): undefined reference to __imp_luaL_checkoption' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x7e0): undefined reference to __imp_lua_pushstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x7fe): undefined reference to __imp_lua_pushboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x812): undefined reference to __imp_lua_toboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xe25): undefined reference to __imp_lua_tolstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf1b): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf2d): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf50): undefined reference to __imp_lua_touserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf7f): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0xf94): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x11fe): undefined reference to __imp_lua_tonumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x12f9): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1304): undefined reference to __imp_lua_typename' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x131e): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x13e5): undefined reference to __imp_lua_pushlightuserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x143a): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x146d): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x148c): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1493): undefined reference to __imp_lua_rawset' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x149a): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x160d): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1626): undefined reference to __imp_lua_rawseti' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x167e): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x16eb): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1709): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1727): undefined reference to __imp_lua_pushboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x174f): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1769): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1777): undefined reference to __imp_lua_touserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x179b): undefined reference to __imp_luaL_checklstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x183c): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1890): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x18ac): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x18d8): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x191a): undefined reference to __imp_lua_touserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1947): undefined reference to __imp_lua_typename' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1978): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x19de): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x19e5): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x19fc): undefined reference to __imp_lua_next' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1a32): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1a63): undefined reference to __imp_lua_tonumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1ae0): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1b27): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1b70): undefined reference to __imp_lua_typename' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1b86): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1caa): undefined reference to __imp_lua_toboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1e92): undefined reference to __imp_lua_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1f47): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x1f58): undefined reference to __imp_lua_rawgeti' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x2069): undefined reference to __imp_lua_typename' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x2083): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x20b1): undefined reference to __imp_lua_touserdata' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x20c6): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x20e0): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x211d): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cjson.o:lua_cjson.c:(.text+0x217c): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x30): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x185): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x1de): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x217): undefined reference to __imp_lua_pushfstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x230): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x26d): undefined reference to __imp_luaL_checklstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x291): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x33d): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x3c6): undefined reference to __imp_luaL_checklstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x406): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x417): undefined reference to __imp_luaL_buffinit' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x433): undefined reference to __imp_luaL_prepbuffer' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x558): undefined reference to __imp_luaL_pushresult' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x591): undefined reference to __imp_luaL_checknumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x5ef): undefined reference to __imp_luaL_addlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x63b): undefined reference to __imp_luaL_addlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x685): undefined reference to __imp_luaL_checknumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x6e4): undefined reference to __imp_luaL_addlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x729): undefined reference to __imp_luaL_checknumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x784): undefined reference to __imp_luaL_addlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x7a5): undefined reference to __imp_luaL_addlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x7ef): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x851): undefined reference to __imp_luaL_prepbuffer' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x897): undefined reference to __imp_luaL_prepbuffer' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x8c3): undefined reference to __imp_luaL_checklstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x900): undefined reference to __imp_luaL_optinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x936): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0x9b8): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xa4d): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xb19): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xb66): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xbbf): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xbea): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xbf8): undefined reference to __imp_lua_tonumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xc1d): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xc56): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xcf2): undefined reference to __imp_lua_isnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xd41): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xd61): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xd94): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_struct.o:lua_struct.c:(.text+0xdd4): undefined reference to __imp_luaL_register' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xb): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x20): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x2f): undefined reference to __imp_lua_insert' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x45): undefined reference to __imp_lua_pcall' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x65): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xd7): undefined reference to __imp_lua_getallocf' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x10b): undefined reference to __imp_lua_getallocf' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1a4): undefined reference to __imp_lua_getallocf' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x21f): undefined reference to __imp_lua_getallocf' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x678): undefined reference to __imp_lua_tolstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x6b3): undefined reference to __imp_lua_toboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x703): undefined reference to __imp_lua_tointeger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x733): undefined reference to __imp_lua_tonumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x782): undefined reference to __imp_lua_tointeger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7be): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7d6): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7df): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7e6): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7ed): undefined reference to __imp_lua_next' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7f4): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x7fb): undefined reference to __imp_lua_tonumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x8f7): undefined reference to __imp_lua_type' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x965): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x99a): undefined reference to __imp_lua_toboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x9bf): undefined reference to __imp_lua_tolstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xa0e): undefined reference to __imp_lua_objlen' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xa34): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xa40): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xa47): undefined reference to __imp_lua_gettable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xae8): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xaef): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xafc): undefined reference to __imp_lua_next' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xb03): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xb47): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xbf5): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xc11): undefined reference to __imp_lua_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xc30): undefined reference to __imp_lua_getallocf' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xc6a): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xc71): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xc84): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xd2c): undefined reference to __imp_lua_concat' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xd6f): undefined reference to __imp_luaL_argerror' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xdb5): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xdc1): undefined reference to __imp_lua_settable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xe6c): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0xff5): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x103a): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1083): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x10c0): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x10f0): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x112b): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1155): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1187): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x11b7): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x11eb): more undefined references to __imp_lua_pushinteger' follow /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x127e): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x12c7): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x12e7): undefined reference to __imp_lua_pushboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1305): undefined reference to __imp_lua_pushnil' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x132a): undefined reference to __imp_lua_pushboolean' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1359): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1387): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x13a6): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1419): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x142e): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x143a): undefined reference to __imp_lua_pushnumber' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1441): undefined reference to __imp_lua_settable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1512): undefined reference to __imp_luaL_checklstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x15b7): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1625): undefined reference to __imp_luaL_checkstack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1642): undefined reference to __imp_lua_pushinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1650): undefined reference to __imp_lua_insert' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1684): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x16a7): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x16cc): undefined reference to __imp_luaL_error' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1713): undefined reference to __imp_luaL_optinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x171f): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x172c): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1761): undefined reference to __imp_luaL_checkinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1775): undefined reference to __imp_luaL_optinteger' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1781): undefined reference to __imp_lua_gettop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x178e): undefined reference to __imp_lua_settop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x17cf): undefined reference to __imp_lua_createtable' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x17d6): undefined reference to __imp_lua_pushcclosure' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x17dd): undefined reference to __imp_lua_setfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1807): undefined reference to __imp_lua_pushlstring' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x18c7): undefined reference to __imp_lua_pushvalue' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x18dc): undefined reference to __imp_lua_setfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1917): undefined reference to __imp_luaopen_cmsgpack' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x191e): undefined reference to __imp_lua_getfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1925): undefined reference to __imp_lua_pushcclosure' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x192c): undefined reference to __imp_lua_setfield' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: lua_cmsgpack.o:lua_cmsgpack.c:(.text+0x1970): undefined reference to `__imp_lua_pushvalue' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:52: lua51.dll] Error 1 make[2]: Leaving directory '/d/githubWork/redis-Windows/redis-7.2.3/deps/lua/src' make[1]: *** [Makefile:108: mingw] Error 2 make[1]: Leaving directory '/d/githubWork/redis-Windows/redis-7.2.3/deps/lua/src' make: *** [Makefile:56: mingw] Error 2怎么解决?这个该不会是要我下载lua吧?

  10. Assistant

    遇到 undefined reference 链接错误通常意味着在编译过程中找不到相关库所需的符号,尤其是在编译和链接动态库(如 lua51.dll)的时候。这种情况在构建 Lua 源码或者类似项目时,可能因为一系列原因导致以下问题和解决办法:

    可能的原因和解决方法

    1. 缺少 Lua 库:

      • 确保 Lua 的库文件(如 liblua.a 或 lua51.lib)能在链接过程中找到并正确使用。如果没有这些库文件,可能需要下载或编译 Lua 本身。
      • 可以在 Lua 的官方发行包中找到这些库,或者使用 MinGW/MSYS 编译 Lua 项目生成。
    2. 包含与链接设置错误:

      • 检查并确保你的编译器设置中的包含路径(-I)和库路径(-L)是正确和一致的,确保指向了正确的 Lua 头文件和库文件。
      • 链接阶段测试如下配置添加:
        -L/path/to/lua/libs -llua
        
      • 确保所有必需的源文件和库在你的构建环境中可访问。
    3. 库版本不兼容:

      • 确保所有 Lua 模块和绑定(如 lua_cjson)与当前使用的 Lua 版本兼容。检查模块的文档以确认版本和兼容性。
    4. 符号导出问题:

      • 确定是否需要对导出符号进行调整,确保 LUA_BUILD_AS_DLL 正确设置,并在导出符号声明中配置微软特定选项。
      • 修正编译命令,确保动态库需要的符号已被正确导出。
    5. 编译静态库:

      • 作为替代方案,可以尝试将 Lua 编译为静态库并链接,可能帮助解决由于符号导出不足导致的动态库问题。
      • 建议首先通过 make 或命令行单独构建 Lua 静态库,如 liblua.a,此后再将其应用于你的项目。
    6. 手动生成导入库:

      • 如果仍无法解决,考虑使用 dlltool 手动生成 DLL 的导入库,这可能需要一些调试和测试。
    7. 尝试下载或使用预构建的 Lua:

      • 如果你的项目只简单依赖 Lua,不包含特定的自定义模块或修改,可以下载并使用预构建的 Lua 二进制和库(如 LuaBinaries 提供的版本)。

    如若经过上述方法问题仍未解决,可能需要分享更详细的日志信息,或逐步分解构建步骤,以便更详细诊断问题原因。

  11. User

    makefile for building Lua

    see ../INSTALL for installation instructions

    see ../Makefile and luaconf.h for further customization

    == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================

    Your platform. See PLATS for possible values.

    PLAT= none

    CC?= gcc CFLAGS= -O2 -Wall (MYCFLAGS)AR=arrcuRANLIB=ranlibRM=rm−fLIBS=−lm(MYCFLAGS) AR= ar rcu RANLIB= ranlib RM= rm -f LIBS= -lm (MYLIBS)

    MYCFLAGS= MYLDFLAGS= MYLIBS=

    == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========

    PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris

    LUA_A= liblua.a CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o
    lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o
    lundump.o lvm.o lzio.o strbuf.o fpconv.o LIB_O= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o
    lstrlib.o loadlib.o linit.o lua_cjson.o lua_struct.o lua_cmsgpack.o
    lua_bit.o

    LUA_T= lua LUA_O= lua.o

    LUAC_T= luac LUAC_O= luac.o print.o

    ALL_O= (COREO)(CORE_O) (LIB_O) (LUAO)(LUA_O) (LUAC_O) ALL_T= (LUAA)(LUA_A) (LUA_T) (LUACT)ALLA=(LUAC_T) ALL_A= (LUA_A)

    default: $(PLAT)

    all: $(ALL_T)

    o: $(ALL_O)

    a: $(ALL_A)

    (LUAA):(LUA_A): (CORE_O) (LIBO)(LIB_O) (AR) @@ (CORE_O) (LIB_O) # DLL needs all object files (RANLIB) $@

    (LUAT):(LUA_T): (LUA_O) (LUAA)(LUA_A) (CC) -o @@ (MYLDFLAGS) (LUAO)(LUA_O) (LUA_A) $(LIBS)

    (LUACT):(LUAC_T): (LUAC_O) (LUAA)(LUA_A) (CC) -o @@ (MYLDFLAGS) (LUACO)(LUAC_O) (LUA_A) $(LIBS)

    clean: (RM)(RM) (ALL_T) $(ALL_O)

    depend: @(CC)(CC) (CFLAGS) -MM l*.c print.c

    echo: @echo "PLAT = (PLAT)"@echo"CC=(PLAT)" @echo "CC = (CC)" @echo "CFLAGS = (CFLAGS)"@echo"AR=(CFLAGS)" @echo "AR = (AR)" @echo "RANLIB = (RANLIB)"@echo"RM=(RANLIB)" @echo "RM = (RM)" @echo "MYCFLAGS = (MYCFLAGS)"@echo"MYLDFLAGS=(MYCFLAGS)" @echo "MYLDFLAGS = (MYLDFLAGS)" @echo "MYLIBS = $(MYLIBS)"

    convenience targets for popular platforms

    none: @echo "Please choose a platform:" @echo " $(PLATS)"

    aix: $(MAKE) all CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS="-brtl -bexpall"

    ansi: $(MAKE) all MYCFLAGS=-DLUA_ANSI

    bsd: $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E"

    freebsd: $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lreadline"

    generic: $(MAKE) all MYCFLAGS=

    linux: $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"

    macosx: $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"

    use this on Mac OS X 10.3-

    $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX

    mingw: (MAKE)"LUAA=lua51.dll""LUAT=lua.exe" "AR=(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \ "AR=(CC) -shared -o" "RANLIB=strip --strip-unneeded"
    "MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe $(MAKE) "LUAC_T=luac.exe" luac.exe

    posix: $(MAKE) all MYCFLAGS=-DLUA_USE_POSIX

    solaris: $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl"

    list targets that do not create files (but not all makes understand .PHONY)

    .PHONY: all $(PLATS) default o a clean depend echo none

    DO NOT DELETE

    lapi.o: lapi.c lua.h luaconf.h lapi.h lobject.h llimits.h ldebug.h
    lstate.h ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h
    lundump.h lvm.h lauxlib.o: lauxlib.c lua.h luaconf.h lauxlib.h lbaselib.o: lbaselib.c lua.h luaconf.h lauxlib.h lualib.h lcode.o: lcode.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h
    lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h lgc.h
    ltable.h ldblib.o: ldblib.c lua.h luaconf.h lauxlib.h lualib.h ldebug.o: ldebug.c lua.h luaconf.h lapi.h lobject.h llimits.h lcode.h
    llex.h lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h
    lfunc.h lstring.h lgc.h ltable.h lvm.h ldo.o: ldo.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h
    lzio.h lmem.h ldo.h lfunc.h lgc.h lopcodes.h lparser.h lstring.h
    ltable.h lundump.h lvm.h ldump.o: ldump.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h
    lzio.h lmem.h lundump.h lfunc.o: lfunc.c lua.h luaconf.h lfunc.h lobject.h llimits.h lgc.h lmem.h
    lstate.h ltm.h lzio.h lgc.o: lgc.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h
    lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h linit.o: linit.c lua.h luaconf.h lualib.h lauxlib.h liolib.o: liolib.c lua.h luaconf.h lauxlib.h lualib.h llex.o: llex.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h ltm.h
    lzio.h lmem.h llex.h lparser.h lstring.h lgc.h ltable.h lmathlib.o: lmathlib.c lua.h luaconf.h lauxlib.h lualib.h lmem.o: lmem.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h
    ltm.h lzio.h lmem.h ldo.h loadlib.o: loadlib.c lua.h luaconf.h lauxlib.h lualib.h lobject.o: lobject.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h
    ltm.h lzio.h lmem.h lstring.h lgc.h lvm.h lopcodes.o: lopcodes.c lopcodes.h llimits.h lua.h luaconf.h loslib.o: loslib.c lua.h luaconf.h lauxlib.h lualib.h lparser.o: lparser.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h
    lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h
    lfunc.h lstring.h lgc.h ltable.h lstate.o: lstate.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h
    ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h llex.h lstring.h ltable.h lstring.o: lstring.c lua.h luaconf.h lmem.h llimits.h lobject.h lstate.h
    ltm.h lzio.h lstring.h lgc.h lstrlib.o: lstrlib.c lua.h luaconf.h lauxlib.h lualib.h ltable.o: ltable.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h
    ltm.h lzio.h lmem.h ldo.h lgc.h ltable.h ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h ltm.o: ltm.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h lzio.h
    lmem.h lstring.h lgc.h ltable.h lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h luac.o: luac.c lua.h luaconf.h lauxlib.h ldo.h lobject.h llimits.h
    lstate.h ltm.h lzio.h lmem.h lfunc.h lopcodes.h lstring.h lgc.h
    lundump.h lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h
    llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h lundump.h lvm.o: lvm.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h
    lzio.h lmem.h ldo.h lfunc.h lgc.h lopcodes.h lstring.h ltable.h lvm.h lzio.o: lzio.c lua.h luaconf.h llimits.h lmem.h lstate.h lobject.h ltm.h
    lzio.h print.o: print.c ldebug.h lstate.h lua.h luaconf.h lobject.h llimits.h
    ltm.h lzio.h lmem.h lopcodes.h lundump.h

    (end of Makefile)

    这个是不是要我手动填入MYCFLAGS= MYLDFLAGS= MYLIBS=值?

  12. Assistant

    在这个 Makefile 中,MYCFLAGS、MYLDFLAGS 和 MYLIBS 是用户可以自定义的变量,通常用于为编译和链接过程添加自定义的编译器标志、链接器标志和额外的库。

    你是否需要手动填入这些值,取决于你的具体需求和编译环境:

    什么情况下需要设置这些变量:

    1. 需要额外的编译器标志:

      • 如果你有额外的编译器标志,比如特定平台的定义或者优化标志,可以通过 MYCFLAGS 添加。例如:
        MYCFLAGS=-DDEBUG -g
        
    2. 需要特别的链接库或链接器标志:

      • 在链接过程中需使用特定的库或者使用某些链接器标志时,可以通过 MYLIBS 或 MYLDFLAGS 添加。
      • 如果需要链接额外的库,比如 -lpthread 或 -lssl,可以设置 MYLIBS 变量:
        MYLIBS=-lpthread -lssl
        
      • 对于需要使用特定的链接选项,可以通过 MYLDFLAGS 指定:
        MYLDFLAGS=-static-libgcc
        
    3. 解决特定环境中的编译或者链接问题:

      • 根据编译错误信息,适当设置这些变量以解决缺失的符号或其他编译问题。

    如果你遇到链接错误:

    针对你之前提到的未定义符号的错误,可能需要针对 Lua 或其他相关库进行适当的链接设置。可以查看你的操作系统和工具链文档,以确保你使用了正确的编译和链接选项。

    总之,设置这些变量这通常与特定构建需求或环境需求相关。在不确定需要哪些具体设置时,可以不设置这些变量或者保持默认,然后根据构建或运行时的反馈进行调整。