IridescentRose / QuickGame

Simple PSP Graphics/Games Library
MIT License
33 stars 3 forks source link

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

Open HeroEpic opened 1 month ago

HeroEpic commented 1 month ago

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 commented 1 month ago

for now I replaced luaL_checkint with luaL_checkinteger

IridescentRose commented 1 month ago

Seems like something may have changed in a version update?

HeroEpic commented 1 month ago

Yes. The same error persists.