gcc信息: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 运行gcc -o demo <file_name>的报错信息: $ gcc -o demo prac.c /usr/bin/ld: /tmp/ccCoI1wp.o: in function `main': prac.c:(.text+0x1f): undefined reference to `luaL_newstate' /usr/bin/ld: prac.c:(.text+0x35): undefined reference to `luaL_openlibs' /usr/bin/ld: prac.c:(.text+0x53): undefined reference to `luaL_loadstring' /usr/bin/ld: prac.c:(.text+0x81): undefined reference to `lua_pcallk' /usr/bin/ld: prac.c:(.text+0xb9): undefined reference to `lua_tolstring' /usr/bin/ld: prac.c:(.text+0xeb): undefined reference to `lua_settop' /usr/bin/ld: prac.c:(.text+0x11e): undefined reference to `lua_close' collect2: error: ld returned 1 exit status