I'm trying to implement Lua scripting in my game, and if I try to define/call a sol function, the compiler throws up alot of LNK2001 errors such as : scripting.obj : error LNK2001: unresolved external symbol __imp_luaL_traceback@@16
Example of code :
After I deleted sol::state* luaState and luaState.open_libraries(sol::lib::base);, I don't get any LNK2001 errors.
I use visual studio 2022 with vcpkg includes .
Any help will be apreciated
I'm trying to implement Lua scripting in my game, and if I try to define/call a sol function, the compiler throws up alot of LNK2001 errors such as :
scripting.obj : error LNK2001: unresolved external symbol __imp_luaL_traceback@@16
Example of code :After I deleted
sol::state* luaState
andluaState.open_libraries(sol::lib::base);
, I don't get any LNK2001 errors. I use visual studio 2022 with vcpkg includes . Any help will be apreciated