xmake version :
xmake v2.7.9+20230515, A cross-platform build utility based on Lua
issue print to terminal
[ 25%]: cache compiling.release src/lni/main.cpp
/usr/bin/gcc -c -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++14 -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -isystem /home/jiachengy/.xmake/packages/l/libxmake/v2.7.1/e20dade54e864035be295e18a062200d/include -isystem /home/jiachengy/.xmake/packages/l/libxmake/v2.7.1/e20dade54e864035be295e18a062200d/include/lua -isystem /home/jiachengy/.xmake/packages/l/lief/0.11.5/5fd114f41ff6445fb276c359a1d679ec/include -DNDEBUG -o build/.objs/luject/linux/x86_64/release/src/lni/main.cpp.o src/lni/main.cpp
error: src/lni/main.cpp: In function ‘tb_int_t lni_pe_add_libraries(lua_State*)’:
src/lni/main.cpp:44:23: error: ‘lua_objlen’ was not declared in this scope; did you mean ‘lua_len’?
44 | tb_size_t n = lua_objlen(lua, 3);
| ^~~~~~~~~~
| lua_len
src/lni/main.cpp: In function ‘tb_int_t lni_elf_add_libraries(lua_State*)’:
src/lni/main.cpp:86:23: error: ‘lua_objlen’ was not declared in this scope; did you mean ‘lua_len’?
86 | tb_size_t n = lua_objlen(lua, 3);
| ^~~~~~~~~~
| lua_len
src/lni/main.cpp: In function ‘tb_int_t lni_macho_add_libraries(lua_State*)’:
src/lni/main.cpp:161:23: error: ‘lua_objlen’ was not declared in this scope; did you mean ‘lua_len’?
161 | tb_size_t n = lua_objlen(lua, 3);
| ^~~~~~~~~~
| lua_len
src/lni/main.cpp: In function ‘tb_int_t main(tb_int_t, tb_char_t**)’:
src/lni/main.cpp:223:30: warning: ISO C++ forbids converting a string constant to ‘tb_char_t*’ {aka ‘char*’} [-Wwrite-strings]
223 | tb_char_t* taskargv[] = {"lua", "-D", "lua.main", tb_null};
| ^~~~~
src/lni/main.cpp:223:37: warning: ISO C++ forbids converting a string constant to ‘tb_char_t*’ {aka ‘char*’} [-Wwrite-strings]
223 | tb_char_t* taskargv[] = {"lua", "-D", "lua.main", tb_null};
| ^~~~
src/lni/main.cpp:223:43: warning: ISO C++ forbids converting a string constant to ‘tb_char_t*’ {aka ‘char*’} [-Wwrite-strings]
223 | tb_char_t* taskargv[] = {"lua", "-D", "lua.main", tb_null};
| ^~~~~~~~~~
issue print to terminal