Advertisement

[LUA] Linker warnings

Started by January 17, 2005 06:31 AM
0 comments, last by D3DXVECTOR3 19 years, 7 months ago
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?
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