Can not compile Torque Demo with VC++ 7.1
by Philip Xue · in Technical Issues · 04/13/2006 (5:20 am) · 8 replies
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
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.
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!
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.
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!
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).
Torque Owner Nathan