Game Development Community

Can not compile Torque Demo with VC++ 7.1

by Philip Xue · in Technical Issues · 04/13/2006 (5:20 am) · 8 replies

Hi,


I am urgently wondering how to successfully combile Torque 1.4 Demo using VC++ 7.1.3088?
I downloaded Torque 1.4 and install into C:\Torque\SDK; I opened "Torque Demo.sln" in VC++ 7.1. I didn't change anything! I rebuilt it and got many errors. In summary, they are:


"
C:\Program Files\Microsoft Platform SDK\Include\WinNT.h(5940): error C2146: syntax error : missing ';' before identifier 'Buffer'
C:\Program Files\Microsoft Platform SDK\Include\WinNT.h(222): error C2146: syntax error : missing ';' before identifier 'PVOID64'
C:\Program Files\Microsoft Platform SDK\Include\WinNT.h(5940): error C2501: '_FILE_SEGMENT_ELEMENT::Buffer' : missing storage-class or type specifiers
C:\Program Files\Microsoft Platform SDK\Include\WinNT.h(5940): error C2501: '_FILE_SEGMENT_ELEMENT::PVOID64' : missing storage-class or type specifiers
max2dtsExporter Max4 fatal error LNK1181: cannot open input file 'engine.lib'
map2dif plus fatal error LNK1181: cannot open input file 'engine.lib'
langc fatal error LNK1181: cannot open input file 'engine.lib'
max2dtsExporter Max3 fatal error LNK1181: cannot open input file 'engine.lib'
map2dif fatal error LNK1181: cannot open input file 'engine.lib'
buildWad fatal error LNK1181: cannot open input file 'engine.lib'
fonttool fatal error LNK1181: cannot open input file 'engine.lib'

"



My VC7.1 worked well for other programs.
I will appreciate your help ASAP!!!

Philip


#1
04/13/2006 (5:56 am)
You really shouldn't triple post...
#2
04/13/2006 (6:43 am)
Sorry! It's my first time to use this forum.
#3
04/13/2006 (2:21 pm)
Upgrade to 8.0 Express and follow the instructions. Works like a charm.

http://tdn.garagegames.com/wiki/Torque/vs2k5

It should work with 7 too. Did you Delete "basetsd.h" from the lib\directx8 folder in the Torque SDK.
#4
04/13/2006 (7:40 pm)
Thanks!
I bought VC7.1. So I really want to avoid using the Expresss 2005. Also is seems Torque1.4 supports VC7.1. So I guess there must be something wrong in my compiling or OS. My system is protected by dual firewalls and anti-virus. OS is Windows XP Sp2 newly updated. After I installed Torque SDK, I didn't delete anything in its folder. I just checked 'basetsd.h' does exist in lib/directx8 folder. Directx9 was isntalled in my windows XP, could this be the reason for why I got those errors? It is bad for a beginner to compile the newly installed SDK with a number of errors! If it is not because of my machines problem, I would regrest buying Torque SDK for my project. SOS!
#5
04/14/2006 (10:54 am)
I got those WinNt.h errors on my complile as well. My problem was missing steps off the instructions ( follow the 'old' instructions ) that I posted. You don't need to compile, if that's what you're asking, but it is all fun, so just relax and follow those instructions. It will work. /Randy
#6
04/14/2006 (3:48 pm)
Did you install the Platform SDK after installing VC7.1? This could possibly cause this problem. You could either use the new basetsd.h I included in the code pack in the "New Directions" or just delete it from lib/directx8 altogether like it mentions in the "Old Directions". Your other options are to either reinstall VC7.1 or to tinker with the Include Directories and Library Directories (also mentioned in the "Old Directions").

TGE has compiled out of the box for VC7.1 for the last 3 years for literally *thousands* of programmers so it is definitely something borked on your end. The steps I mentioned above should get you up and running though.
#7
04/14/2006 (10:33 pm)
Thank you, Randy and Matt!

The "New Directions" at http://tdn.garagegames.com/wiki/Torque/vs2k5 and http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9253
seems to be specifically for VC2005. I am using VC7.1. Does it matter?
Good Easter!
#8
04/16/2006 (4:53 am)
Thank you all!
I have just replaced basetsd.h with the new basetsd.h which I got from the code pack that claims to be for VC2005. This made me successfully compile the Torque Demo solution in my VC7.1 (2003).