Game Development Community

Vsprintf etc build errors help?

by Joseph Euan · in Torque Game Engine Advanced · 11/26/2006 (2:34 pm) · 1 replies

A few days a go I re-formatted my pc and today I decided to take a look at the latest version of TSE (
4.1?)

I've installed Visual Studio 8 and the directx SDK (setup the lib and include folders within VS)
But when I compile I get the following errors:
Warning	1	warning C4996: 'vsprintf' was declared deprecated	c:\documents and settings\joseph\desktop\game dev\tse\lib\libqslim\mixmsg.cxx	79	
Warning	2	warning C4996: 'strdup' was declared deprecated	c:\documents and settings\joseph\desktop\game dev\tse\lib\libqslim\mxblockmodel.cxx	135	
Warning	3	warning C4996: '_vsnprintf' was declared deprecated	c:\program files\microsoft directx sdk (october 2006)\include\strsafe.h	5595	
Warning	4	warning C4996: '_vsnwprintf' was declared deprecated	c:\program files\microsoft directx sdk (october 2006)\include\strsafe.h	5635	
Warning	5	warning C4996: '_vsnprintf' was declared deprecated	c:\program files\microsoft directx sdk (october 2006)\include\strsafe.h	5719	
Warning	6	warning C4996: '_vsnwprintf' was declared deprecated	c:\program files\microsoft directx sdk (october 2006)\include\strsafe.h	5871	
Warning	7	warning C4996: '_wsplitpath' was declared deprecated	c:\documents and settings\joseph\desktop\game dev\tse\engine\platformwin32\dxversionchecker.cpp	149	
Warning	8	warning C4482: nonstandard extension used: enum 'GFXVertexColor::ColorOrdering' used in qualified name	c:\documents and settings\joseph\desktop\game dev\tse\engine\gfx\d3d\gfxd3ddevice.cpp	38	
Error	9	error LNK2019: unresolved external symbol "class RefPtr<class DLibrary> __cdecl OsLoadLibrary(char const *)" (?OsLoadLibrary@@YA?AV?$RefPtr@VDLibrary@@@@PBD@Z) referenced in function "public: static void __cdecl GFXD3DDevice::enumerateAdapters(class Vector<struct GFXAdapter> &)" (?enumerateAdapters@GFXD3DDevice@@SAXAAV?$Vector@UGFXAdapter@@@@@Z)	gfxD3DDevice.obj	
Error	10	fatal error LNK1120: 1 unresolved externals	c:\Documents and Settings\Joseph\Desktop\Game Dev\TSE\example\TSE_DEBUG.exe	1

Anyone got any ideas?

#1
11/26/2006 (3:11 pm)
I can not see any errors with vSprintf, those are warnings and nothing to worry about. Basically Microsoft wants you to use some other function that is safer/better (supposed to be anyway) and they have then declared the old functions deprecated so that people will switch.

As for your only error, there was a post about that as recently as today.