写Lua代码出现 undefined reference to `luaL_newstate'
1、安装Lua后,将.lib、.h、.dll放入相应的文件夹 2、开的cpp文件,用extern "C" extern "C" { #include "lua.hpp" #include "lualib.h" #include "lauxlib.h" } 3、配置链接静态库 这里以codeblocks为例子![]()
undefined reference to `luaL_newstate‘ 解决方法 Add lua5.1.lib即可![]()
undefined reference to `luaL_newstate‘ 解决方法