[LUA] Linker warnings
I get warning LNK4204 each time I build my application for each of the objects in lua.lib (lapi.obj, lcode.obj, ldebug.obj, ....) Is says something about debug information being missing. Why may this be happening and how could I correct the problem?
Mariano RuggieroONIRIC GAMESLatestGame: TIME OF WAR
You should link LUA debug libraries when building a debug build and the release libraries when building a release build. Like this:
#ifdef _DEBUG // Debug build #pragma comment(lib, "Source/Lua/Luad.lib") #pragma comment(lib, "Source/Lua/Lualibd.lib")#endif else#ifdef NDEBUG // Release build #pragma comment(lib, "Source/Lua/Lua.lib") #pragma comment(lib, "Source/Lua/Lualib.lib")#endif
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement