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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -