c - unresolved external symbol _LoadLibraryExA when compiling Lua -


i'm trying compile lua 5.3.1 msvc14. error:

lnk2019 unresolved external symbol _loadlibraryexa referenced in function _lsys_load

the function in question being:

static void *lsys_load (lua_state *l, const char *path, int seeglb) {   hmodule lib = loadlibraryexa(path, null, lua_lle_flags);   (void)(seeglb);  /* not used: symbols 'global' default */   if (lib == null) pusherror(l);   return lib; } 

i'm not quite sure what's causing error i've compiled mingw before. fix it?

make sure linking kernel32.lib program. loadlibraryexa defined in kernel32.lib.

check project or build settings , make sure kernel32.lib should present.


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -