I'm trying to create a new project using lua library. So far, I've always used NuGet Lua for this, but now it suddenly stopped working. All my code is this:
#include <iostream>
#include <lua.h>
#include <lauxlib.h>
int main()
{
luaL_newstate();
return 0;
}
And I'm getting this error:
error LNK2019: unresolved external symbol "__declspec(dllimport) struct lua_State * __cdecl luaL_newstate(void)" (__imp_?luaL_newstate@@YAPAUlua_State@@XZ) called in function _main
I know LNK2019 is usually a problem with linking, but it was usually done by Nuget package. I also tried manually linking against lua.lib in package directory, but it also did not work.
How do I solve this?