Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 329 by [email protected]: Vim doesn't compile with Lua 5.3 on
windows
https://code.google.com/p/vim/issues/detail?id=329
What steps will reproduce the problem?
1. Try to compile vim with Lua enabled (using MSVC or Mingw)
What is the expected output? What do you see instead?
Expected is a gvim.exe with +lua/dyn actual output is:
gobji386/if_lua.o:if_lua.c:(.text+0x35a2): undefined reference to
`luaL_optlong'
What version of the product are you using? On what operating system?
This was built with the hg tip version
(c80ef2bf390ba312cbba7d7aa07a7ddd4ac92f43) of vim and lua 5.3.
Please provide any additional information below.
If one looks at lauxlib.h it's obvious that the definition of the missing
luaL_optlong symbol is guarded by a ifdef LUA_COMPAT_APIINTCASTS
Following patch fixes the build
diff -r c80ef2bf390b src/if_lua.c
--- a/src/if_lua.c Wed Feb 04 23:08:02 2015 +0100
+++ b/src/if_lua.c Wed Feb 11 16:52:12 2015 +0100
@@ -13,6 +13,7 @@
#include <lua.h>
#include <lualib.h>
+#define LUA_COMPAT_APIINTCASTS 1
#include <lauxlib.h>
/* Only do the following when the feature is enabled. Needed for "make
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.