Game Development Community

Problem Compiling TGE 1.4 w/ VC 7.1

by Don Harvey · in Torque Game Engine · 12/23/2005 (5:48 pm) · 4 replies

I've just purchased TGE and I don't know how to compile the engine. I've programmed with Borland C/C++ products for years but I'm kind of new to MS compilers. I've built other smaller projects with VC 7.1 so I'm not totally at a disadvantage. I tried to build the Torque SKD.sln in SDK\vc7 and realized I needed to link in the engine library. I can't seem to find an engine project file or engine makefile.

I've read through all the docs I could find and I've read through the forum until I'm dizzy but no luck. I could probably eventually figure it out, but I'm anxious to get the engine built. Any help would be greatly appreciated. Thanks.

#1
12/23/2005 (8:09 pm)
Building in VC7.1 is literally a two click process. Make sure you have the "Torque Demo" project selected (it should be by default) and choose Build->Build Torque Demo from the menu. Unless you are building one of the commandline tools (like buildWad or map2dif) you don't need to compile the "Torque Tool Lib" project and linking it against the engine would produce very, very bad results.
#2
12/23/2005 (8:50 pm)
Thanks for your help! I cleaned my project and tried again but I get the same errors (I've just listed the first few lines since most the other errors refer to PVOID64):

------ Build started: Project: opengl2d3d, Configuration: Release Win32 ------

Compiling...
vc7fix.cpp
opengl2d3d.cc
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(222) : error C2501: 'PVOID64' : missing storage-class or type specifiers
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(5940) : error C2501: '_FILE_SEGMENT_ELEMENT::PVOID64' : missing storage-class or type specifiers
C:\Program Files\Microsoft Platform SDK\Include\WinNT.h(5940) : error C2501: '_FILE_SEGMENT_ELEMENT::Buffer' : missing storage-class or type specifiers
#3
12/23/2005 (9:28 pm)
You seem to have the Platform SDK includes coming first in your paths. You'll have to get back to the defaults, otherwise strange things like this will happen. :)
#4
12/23/2005 (11:15 pm)
Thanks Ben and Matt - I guess the Platform SDK inserted itself in front of VC's includes because it worked. I just need to get better acquainted with Studio I guess. Now for the REAL work..........