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

Error building with xmake: undeclared function #35

Open
monguito opened this issue Nov 13, 2023 · 1 comment
Open

Error building with xmake: undeclared function #35

monguito opened this issue Nov 13, 2023 · 1 comment

Comments

@monguito
Copy link

Describe the bug

While building with xmake, there's an error in curses.c . error: implicit declaration of function ‘luaL_setfuncs’. This might be because the function luaL_setfuncs is not properly declared

Expected behavior

No errors while builing

Error output

error: src/core/curses/curses.c:838:5: error: implicit declaration of function ‘luaL_setfuncs’; did you mean ‘lua_setfenv’? [-Werror=implicit-function-declaration]

Related Environment

Please provide the compilation or runtime environment information.

Additional context

Add any other context about the problem here.

@waruqi
Copy link
Member

waruqi commented Nov 16, 2023

maybe you installed old lua on your system.

you can try use luajit xmake f --luajit=y or use remove lua version.

ltui/xmake.lua

Line 51 in 285053d

add_requires("lua")

change add_requires("lua") -> add_requires("lua", {system = false})

or you can uninstall lua on your machine.

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