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

Ошибка: C3861: 'luaL_getn': identifier not found #33

Open
kv-gits opened this issue Nov 25, 2020 · 0 comments
Open

Ошибка: C3861: 'luaL_getn': identifier not found #33

kv-gits opened this issue Nov 25, 2020 · 0 comments

Comments

@kv-gits
Copy link

kv-gits commented Nov 25, 2020

Собираю простейший пример через Qt creator.
Сначала было много ошибок, потом lua5.3.5 скопировал в директорию contrib - все ошибки исчезли кроме одной

Ошибка: C3861: 'luaL_getn': identifier not found

ЗЫ

Попробовал добавить

#define LUA_COMPAT_5_1
#define LUA_COMPAT_5_2

Не заработало

Попробовал добавить на основе mpx/lua-cjson#54:

#define luaL_getn(L,i)          ((int)lua_rawlen(L, i))
#define luaL_setn(L,i,j)        ((void)0)  /* no op! */

Так вроде скомпилировалось, но стоит ли так делать?

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

1 participant