Hello. I'm having issues with properly linking sol and lua in my c++ program. I have the supposedly single header version that requires two other headers (config.hpp) and (forward.hpp). Sol's headers are in the folder structure: "sol/include/sol/".
I have included the folder structure "sol/include/"
I think lua is linked properly because it did work before including sol. Though it might be that sol is expecting lua to be somewhere else.
lua headers are located at "lua/include/"
The error points to a line in sol.hpp
sol\include\sol\sol.hpp undefined reference to `luaL_unref(lua_State*, int, int)'
The line at 10531:
luaL_unref(L_, LUA_REGISTRYINDEX, ref);
Is it possible that I need to include something like -llua in my linker? I'm using Embarcadero Devc++ by the way ,so linker settings use -l.
Help would be greatly appreciated.