Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错:“提供给函数‘lua_load’的实参太少” #198

Open
liyu76 opened this issue Sep 9, 2019 · 2 comments
Open

报错:“提供给函数‘lua_load’的实参太少” #198

liyu76 opened this issue Sep 9, 2019 · 2 comments

Comments

@liyu76
Copy link

liyu76 commented Sep 9, 2019

系统:
CentOS Linux release 7.6.1810
Lua-devel-5.3.0-2.el7.x86_64

编译参数:
./configure --with-mysql=/usr/bin/mysql_config --prefix=/usr/local/atlas LDFLAGS="-lcrypto"

make 出错提示:
lua-load-factory.c: 在函数‘luaL_loadstring_factory’中:
lua-load-factory.c:122:2: 错误:提供给函数‘lua_load’的实参太少
return lua_load(L, loadstring_factory_reader, &factory, s);

In file included from lua-load-factory.c:34:0:
/usr/include/lua.h:278:16: 附注:在此声明
LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,

lua-load-factory.c: 在函数‘luaL_loadfile_factory’中:
lua-load-factory.c:137:2: 错误:提供给函数‘lua_load’的实参太少
ret = lua_load(L, loadstring_factory_reader, &factory, filename);

请问怎么解决这个问题。

@zhuchao-hit
Copy link

zhuchao-hit commented Sep 9, 2019 via email

@liyu76
Copy link
Author

liyu76 commented Sep 17, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants