Game Development Community

Is this OK? TGE 1.4 build with VS 2005 Pro

by Amon · in Torque Game Engine · 01/26/2006 (5:16 pm) · 5 replies

Hi, going through the resources I managed to build TGE 1.4 in VS 2005 Pro with 0 Errors and 70 warnings. The warnings included the stuff below. Is this normal or should I get a build with 0 Errors and 0 warnings?

Warning	132	warning C4996: 'sprintf' was declared deprecated	c:\applications\coding apps\torquege\sdk\engine\platformwin32\winglspecial.cc	322	
Warning	133	warning C4996: 'localtime' was declared deprecated	c:\applications\coding apps\torquege\sdk\engine\platformwin32\winglspecial.cc	2723	
Warning	134	warning C4996: 'asctime' was declared deprecated	c:\applications\coding apps\torquege\sdk\engine\platformwin32\winglspecial.cc	2725	
Warning	135	warning C4996: 'fopen' was declared deprecated	c:\applications\coding apps\torquege\sdk\engine\platformwin32\winglspecial.cc	2727	
Warning	136	warning C4996: 'asctime' was declared deprecated	c:\applications\coding apps\torquege\sdk\engine\platformwin32\winglspecial.cc	2729	
Warning	137	warning C4996: '_vsnprintf' was declared deprecated	c:\applications\coding apps\torquege\sdk\engine\platformwin32\winconsole.cc	95	
Warning	138	warning C4996: 'strcpy' was declared deprecated	c:\applications\coding apps\torquege\sdk\engine\platformwin32\winconsole.cc	276	
Warning	139	warning C4068: unknown pragma	c:\applications\coding apps\torquege\sdk\engine\core\unicode.cc	17	
Warning	140	warning C4068: unknown pragma	c:\applications\coding apps\torquege\sdk\engine\core\unicode.cc	33	
Warning	141	warning C4068: unknown pragma	c:\applications\coding apps\torquege\sdk\engine\core\unicode.cc	44	
Warning	142	warning C4068: unknown pragma	c:\applications\coding apps\torquege\sdk\engine\core\unicode.cc	48	
Warning	143	warning C4068: unknown pragma	c:\applications\coding apps\torquege\sdk\engine\core\unicode.cc	51	
Warning	144	warning C4068: unknown pragma	c:\applications\coding apps\torquege\sdk\engine\core\unicode.cc	63	
Warning	145	warning C4068: unknown pragma	c:\applications\coding apps\torquege\sdk\engine\core\unicode.cc	198	
Warning	146	warning C4068: unknown pragma	c:\applications\coding apps\torquege\sdk\engine\core\unicode.cc	334	
Warning	147	warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library	Torque Demo


Thanks :)

#1
01/26/2006 (5:31 pm)
None of them look serious enough to worry about.
#2
01/26/2006 (5:36 pm)
Thank you. :)
#3
01/29/2006 (2:57 pm)
To get rid of the annoying deprecated warnings:

1. Click the "Project" menu in VS, then click "Properties"
2. Go to "Configuration Properties" --> "C/C++" --> "Command Line"
3. In "Additional options" textbox enter the folowing text
/D "_CRT_SECURE_NO_DEPRECATE"

Now there should be no more deprecated warnings.
#4
01/29/2006 (4:38 pm)
@Willbkool:

Thanks for the tip, but doesn't this just delete the actual warning, but not fix the issue the warning is warning us about?
#5
01/29/2006 (10:21 pm)
Yeah, you're right, but it helps so that you don't have to sift through all those harmless warnings to find real errors. In this case, the deprecated warnings aren't a big deal. I would hate to have to go through all the code and change it to accepted code.