QuickGame icon indicating copy to clipboard operation
QuickGame copied to clipboard

error: implicit declaration of function 'luaL_checkint'; did you mean 'luaL_checkany'?

Open HeroEpic opened this issue 1 year ago • 3 comments

I tried to compile my game in a docker container, but it gave me this error:

/content/QuickGame/interpreter/graphics.c: In function 'lua_qg_set_clear_color': /content/QuickGame/interpreter/graphics.c:28:17: error: implicit declaration of function 'luaL_checkint'; did you mean 'luaL_checkany'? [-Wimplicit-function-declaration] 28 | int color = luaL_checkint(L, 1); | ^~~~~~~~~~~~~ | luaL_checkany make[2]: *** [QuickGame/CMakeFiles/interpreter.dir/build.make:90: QuickGame/CMakeFiles/interpreter.dir/interpreter/graphics.c.obj] Error 1 make[1]: *** [CMakeFiles/Makefile2:184: QuickGame/CMakeFiles/interpreter.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

HeroEpic avatar Aug 04 '24 15:08 HeroEpic

for now I replaced luaL_checkint with luaL_checkinteger

HeroEpic avatar Aug 04 '24 16:08 HeroEpic

Seems like something may have changed in a version update?

IridescentRose avatar Aug 13 '24 00:08 IridescentRose

Yes. The same error persists.

HeroEpic avatar Aug 15 '24 13:08 HeroEpic