Building TSE in Visual Studio 2005 Professional
by Jonathon Stevens · in Torque Game Engine Advanced · 12/24/2005 (8:06 am) · 9 replies
Friends,
I followed all the instructions in other posts about getting TGE to build in VS.Net 2005 Pro and I'm still getting a massive amount of errors. Here they are:
Error 95 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\shape.h 334
Error 96 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\shape.h 335
Error 97 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\shape.h 336
Error 98 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\patchobj.h 297
Error 99 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\stdmat.h 307
Error 100 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\stdmat.h 309
Error 101 error C2065: 'i' : undeclared identifier d:\tse\lib\maxsdk40\imtl.h 1392
Error 103 error C2065: 'i' : undeclared identifier d:\tse\lib\maxsdk40\imtl.h 1392
Error 133 error C2065: 'i' : undeclared identifier d:\tse\tools\ms2dtsexporter\dtsplugin.cpp
Error 134 fatal error LNK1181: cannot open input file 'd3d9.lib' map2dif
Error 135 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\atlas\atlastqtfiled3d.cpp 8
Error 136 fatal error C1083: Cannot open include file: 'dinput.h': No such file or directory d:\tse\engine\platformwin32\windinputdevice.h 20
Error 140 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\screenshotd3d.cpp 5
Error 141 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dvertexbuffer.cpp 5
Error 142 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dtypes.cpp 7
Error 143 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dtextureobject.cpp 6
Error 144 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dtexturemanager.cpp 11
Error 145 fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dshadermgr.cpp 1
Error 146 fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dshader.cpp 1
Error 147 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3denumtranslate.h 5
Error 148 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3ddevice.regen-states.cpp 7
Error 149 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3ddevice.cpp 11
Error 150 fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dcubemap.cpp 5
Error 151 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dcardprofiler.cpp 6
Error 152 fatal error C1083: Cannot open include file: 'dxdiag.h': No such file or directory d:\tse\engine\gfx\d3d\dxdiagnvutil.h 72
Error 153 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\gfxinit.win32.cpp 7
Error 154 error BK1506 : cannot open file '..\engine\out.vc7.win32.debug\gfxInit.win32.sbr': No such file or directory BSCMAKE
I cut a bunch out, had about 120 errors. The ones I cut out are the exact same set of erros but on different lines in those exact files. I'm new to Torque, so Heeeeeelp! ;)
I followed all the instructions in other posts about getting TGE to build in VS.Net 2005 Pro and I'm still getting a massive amount of errors. Here they are:
Error 95 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\shape.h 334
Error 96 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\shape.h 335
Error 97 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\shape.h 336
Error 98 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\patchobj.h 297
Error 99 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\stdmat.h 307
Error 100 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\tse\lib\maxsdk31\stdmat.h 309
Error 101 error C2065: 'i' : undeclared identifier d:\tse\lib\maxsdk40\imtl.h 1392
Error 103 error C2065: 'i' : undeclared identifier d:\tse\lib\maxsdk40\imtl.h 1392
Error 133 error C2065: 'i' : undeclared identifier d:\tse\tools\ms2dtsexporter\dtsplugin.cpp
Error 134 fatal error LNK1181: cannot open input file 'd3d9.lib' map2dif
Error 135 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\atlas\atlastqtfiled3d.cpp 8
Error 136 fatal error C1083: Cannot open include file: 'dinput.h': No such file or directory d:\tse\engine\platformwin32\windinputdevice.h 20
Error 140 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\screenshotd3d.cpp 5
Error 141 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dvertexbuffer.cpp 5
Error 142 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dtypes.cpp 7
Error 143 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dtextureobject.cpp 6
Error 144 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dtexturemanager.cpp 11
Error 145 fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dshadermgr.cpp 1
Error 146 fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dshader.cpp 1
Error 147 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3denumtranslate.h 5
Error 148 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3ddevice.regen-states.cpp 7
Error 149 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3ddevice.cpp 11
Error 150 fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dcubemap.cpp 5
Error 151 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\d3d\gfxd3dcardprofiler.cpp 6
Error 152 fatal error C1083: Cannot open include file: 'dxdiag.h': No such file or directory d:\tse\engine\gfx\d3d\dxdiagnvutil.h 72
Error 153 fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory d:\tse\engine\gfx\gfxinit.win32.cpp 7
Error 154 error BK1506 : cannot open file '..\engine\out.vc7.win32.debug\gfxInit.win32.sbr': No such file or directory BSCMAKE
I cut a bunch out, had about 120 errors. The ones I cut out are the exact same set of erros but on different lines in those exact files. I'm new to Torque, so Heeeeeelp! ;)
About the author
With a few casual games under his belt as CEO of Last Straw Productions, Jonathon created the increasingly popular Indie MMO Game Developers Conference.
#2
12/24/2005 (8:22 am)
Yes I do, the december 2005 9.0 SDK. I went into each project and added it to the include file locations list as the first one as well.
#3
Error 1 fatal error LNK1181: cannot open input file 'd3d9.lib' map2dif
Error 2 fatal error LNK1104: cannot open file 'd3d9.lib' Torque Shader Engine
Warning 3 warning C4482: nonstandard extension used: enum 'GFXVertexColor::ColorOrdering' used in qualified name d:\tse\engine\gfx\d3d\gfxd3ddevice.cpp 31
I've added the folder where the d3d9.lib file is located to the include folders list for both of the projects map2dif and TSE with no luck. Any thoughts?
12/24/2005 (9:48 am)
UPDATE: In my infinate stupidity, I forgot to add the include directory for the TSE project itself! I've fixed all errors except for 2 (and 1 warning):Error 1 fatal error LNK1181: cannot open input file 'd3d9.lib' map2dif
Error 2 fatal error LNK1104: cannot open file 'd3d9.lib' Torque Shader Engine
Warning 3 warning C4482: nonstandard extension used: enum 'GFXVertexColor::ColorOrdering' used in qualified name d:\tse\engine\gfx\d3d\gfxd3ddevice.cpp 31
I've added the folder where the d3d9.lib file is located to the include folders list for both of the projects map2dif and TSE with no luck. Any thoughts?
#4
12/24/2005 (7:54 pm)
It needs to be in the lib folder list. :)
#5
12/25/2005 (8:36 am)
Thanks for the help! successful build! woohoo
#6
Can you explain what you meant by this?
Thanks :)
01/25/2006 (3:06 pm)
Can you help us out here? I'm trying to build it in VS 2005 pro also and I've got loads of warning(236) and 1 warning.Can you explain what you meant by this?
Quote:Yes I do, the december 2005 9.0 SDK. I went into each project and added it to the include file locations list as the first one as well.
Thanks :)
#7
In VC++ 2005 go to Tools> Options
Then in the window that pops up click the + next to "Projects and Solutions"
Then in VC++ Directories you'll need to add the path for each DirectX SDK directory like include...bin...lib..
In the right corner of the screen you click "Show diretories for include files" and then put the path in:
C:\Program Files\Microsoft DirectX SDK (December 2005)\Include
Switch to "Show directories for Library files" and put the path in:
C:\Program Files\Microsoft DirectX SDK (December 2005)\Lib\x86
Of course this is for my system. Yours may be different.
Steve
01/25/2006 (3:13 pm)
Amon,In VC++ 2005 go to Tools> Options
Then in the window that pops up click the + next to "Projects and Solutions"
Then in VC++ Directories you'll need to add the path for each DirectX SDK directory like include...bin...lib..
In the right corner of the screen you click "Show diretories for include files" and then put the path in:
C:\Program Files\Microsoft DirectX SDK (December 2005)\Include
Switch to "Show directories for Library files" and put the path in:
C:\Program Files\Microsoft DirectX SDK (December 2005)\Lib\x86
Of course this is for my system. Yours may be different.
Steve
#8
The error I get is
I'll paste as many erorors as I can but like I said there's a lot of them.
I have the December DX SDK installed and have added the fi8les to the project.

01/25/2006 (3:41 pm)
Thanks Steve. I did that but still get 1 error and 275 warnings.The error I get is
Error 269 error C2440: 'return' : cannot convert from 'const char *' to 'char *' c:\tse\engine\platformWin32\winStrings.cpp 195
I'll paste as many erorors as I can but like I said there's a lot of them.
Warning 1 warning C4996: 'getenv' was declared deprecated c:\tse\lib\ljpeg\jmemmgr.c 1106 Warning 2 warning C4996: 'sscanf' was declared deprecated c:\tse\lib\ljpeg\jmemmgr.c 1109 Warning 3 warning C4996: 'strcpy' was declared deprecated c:\tse\lib\zlib\gzio.c 108 Warning 4 warning C4996: 'fopen' was declared deprecated c:\tse\lib\zlib\gzio.c 156 Warning 5 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\zlib\gzio.c 201 Warning 6 warning C4996: 'vsprintf' was declared deprecated c:\tse\lib\zlib\gzio.c 535 Warning 7 warning C4996: 'strcpy' was declared deprecated c:\tse\lib\zlib\gzio.c 871 Warning 8 warning C4996: 'strcat' was declared deprecated c:\tse\lib\zlib\gzio.c 872 Warning 9 warning C4996: 'strcat' was declared deprecated c:\tse\lib\zlib\gzio.c 873 Warning 10 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\ljpeg\jerror.c 193 Warning 11 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\ljpeg\jerror.c 199 Warning 12 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngwutil.c 180 Warning 13 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngwutil.c 1130 Warning 14 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngwutil.c 1493 Warning 15 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngwutil.c 1494 Warning 16 warning C4996: 'gmtime' was declared deprecated c:\tse\lib\lpng\pngwrite.c 414 Warning 17 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngwrite.c 500 Warning 18 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngwrite.c 504 Warning 19 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngwrite.c 529 Warning 20 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngwrite.c 533 Warning 21 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngwrite.c 582 Warning 22 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngwrite.c 586 Warning 23 warning C4996: 'strcpy' was declared deprecated c:\tse\lib\lpng\pngset.c 539 Warning 24 warning C4996: 'strcpy' was declared deprecated c:\tse\lib\lpng\pngset.c 788 Warning 25 warning C4996: 'strcpy' was declared deprecated c:\tse\lib\lpng\pngset.c 831 Warning 26 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngrutil.c 257 Warning 27 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngrutil.c 260 Warning 28 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngrutil.c 263 Warning 29 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngrutil.c 290 Warning 30 warning C4996: 'strcpy' was declared deprecated c:\tse\lib\lpng\pngrutil.c 2072 Warning 31 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngrtran.c 1137 Warning 32 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngread.c 103 Warning 33 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngread.c 107 Warning 34 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngread.c 132 Warning 35 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngread.c 136 Warning 36 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngread.c 197 Warning 37 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\pngread.c 201 Warning 38 warning C4996: 'strcpy' was declared deprecated c:\tse\lib\lpng\pngpread.c 1423 Warning 39 warning C4996: 'sprintf' was declared deprecated c:\tse\lib\lpng\png.c 629 Warning 40 warning C4996: 'strncpy' was declared deprecated c:\tse\lib\lungif\egif_lib.c 197 Warning 41 warning C4996: 'strncpy' was declared deprecated c:\tse\lib\lungif\egif_lib.c 860 Warning 42 warning C4996: 'strncpy' was declared deprecated c:\tse\lib\lungif\egif_lib.c 863 Warning 43 warning C4996: 'strncpy' was declared deprecated c:\tse\lib\lungif\egif_lib.c 867 Warning 44 warning C4996: 'strncpy' was declared deprecated c:\tse\lib\lungif\egif_lib.c 876 Warning 45 warning C4996: 'strncpy' was declared deprecated c:\tse\lib\lungif\egif_lib.c 879 Warning 46 warning C4482: nonstandard extension used: enum 'GFXTextureManager::TextureManagerState' used in qualified name c:\tse\engine\gfx\gfxTextureManager.h 201 Warning 47 warning C4482: nonstandard extension used: enum 'GFXTextureManager::TextureManagerState' used in qualified name c:\tse\engine\gfx\gfxTextureManager.h 201 Warning 48 warning C4482: nonstandard extension used: enum 'GFXTextureManager::TextureManagerState' used in qualified name c:\tse\engine\gfx\gfxTextureManager.h 201 Warning 49 warning C4482: nonstandard extension used: enum 'GFXTextureManager::TextureManagerState' used in qualified name c:\tse\engine\gfx\gfxTextureManager.h 201 Warning 50 warning C4482: nonstandard extension used: enum 'GFXTextureManager::TextureManagerState' used in qualified name c:\tse\engine\gfx\gfxTextureManager.h 201
I have the December DX SDK installed and have added the fi8les to the project.

#9
01/25/2006 (4:04 pm)
Oops, I just realised that this is in the public section. Will post a new thread in the private forums.
Torque 3D Owner James Bond