Hi, 2020/5/18 Mon 0:29:52 UTC+9 Cesar wrote: > > By building on Windows 7 with Mingw-w64 I'm getting: > > [...] > obji686/if_lua.o:if_lua.c:(.text+0x4096): undefined reference to > `luaL_loadstring' > collect2.exe: error: ld returned 1 exit status > make: *** [gvim.exe] Error 1 > Error by compiling gvim.exe > > -- > Cesar >
Attached patch should fix the issue. Regards, Ken Takata -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/be7f3b5b-88d0-4472-ada4-c9c45ce73e47%40googlegroups.com.
# HG changeset patch # Parent 81713f67883d0bb0545e0b48347d5b709ec382df diff --git a/src/if_lua.c b/src/if_lua.c --- a/src/if_lua.c +++ b/src/if_lua.c @@ -119,6 +119,7 @@ static luaV_Funcref *luaV_pushfuncref(lu #define luaL_buffinit dll_luaL_buffinit #define luaL_addlstring dll_luaL_addlstring #define luaL_pushresult dll_luaL_pushresult +#define luaL_loadstring dll_luaL_loadstring // lua #if LUA_VERSION_NUM <= 501 #define lua_tonumber dll_lua_tonumber @@ -213,6 +214,7 @@ lua_State *(*dll_luaL_newstate) (void); void (*dll_luaL_buffinit) (lua_State *L, luaL_Buffer *B); void (*dll_luaL_addlstring) (luaL_Buffer *B, const char *s, size_t l); void (*dll_luaL_pushresult) (luaL_Buffer *B); +int (*dll_luaL_loadstring) (lua_State *L, const char *s); // lua #if LUA_VERSION_NUM <= 501 lua_Number (*dll_lua_tonumber) (lua_State *L, int idx); @@ -325,6 +327,7 @@ static const luaV_Reg luaV_dll[] = { {"luaL_buffinit", (luaV_function) &dll_luaL_buffinit}, {"luaL_addlstring", (luaV_function) &dll_luaL_addlstring}, {"luaL_pushresult", (luaV_function) &dll_luaL_pushresult}, + {"luaL_loadstring", (luaV_function) &dll_luaL_loadstring}, // lua #if LUA_VERSION_NUM <= 501 {"lua_tonumber", (luaV_function) &dll_lua_tonumber},