Getting `unresolved external symbol` errors even though I linked the dll file

Viewed 22

I am trying to use the Lua C API for my project, and I linked the dll using

#pragma comment(lib, "path-to-my-lua-lib.lib")

but it keeps throwing LNK2019 and LNK2001 unresolved external symbol errors.
What am I doing wrong?

I am using MSVC 19.32.31332 with VS2022

Edit: the functions that it's complaining about are all supposed to be found in the lua .lib file: lua_pcallk, lua_close, lua_gettop, lua_settop, etc.

0 Answers
Related