Game Development Community

Help with compiling the engine

by Keith Watt · in Torque Game Engine · 11/21/2005 (8:56 am) · 2 replies

Hi,

Up until now I've been able to do everything in TorqueScript. I've finally come to the point where I need to make an engine change and am trying to compile for the first time.

I am using Visual Studio 2005 (Production Version). I've been following the instructions on this post:

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5957

However, I am still getting the following errors:

Error 3 error C2146: syntax error : missing ';' before identifier 'Buffer' D:\Program Files\Microsoft Platform SDK\Include\winnt.h 5940
Error 8 error C2146: syntax error : missing ';' before identifier 'Buffer' D:\Program Files\Microsoft Platform SDK\Include\winnt.h 5940
Error 13 error C2146: syntax error : missing ';' before identifier 'Buffer' D:\Program Files\Microsoft Platform SDK\Include\winnt.h 5940
Error 1 error C2146: syntax error : missing ';' before identifier 'PVOID64' D:\Program Files\Microsoft Platform SDK\Include\winnt.h 222
Error 6 error C2146: syntax error : missing ';' before identifier 'PVOID64' D:\Program Files\Microsoft Platform SDK\Include\winnt.h 222
Error 11 error C2146: syntax error : missing ';' before identifier 'PVOID64' D:\Program Files\Microsoft Platform SDK\Include\winnt.h 222

Etc....

I installed the Platform SDK and have updated the Include and Lib references.

Anyone have any ideas?

Thanks! - Keith

#1
11/21/2005 (10:11 am)
Yay! I finally got it to compile.

I made a mistake when changing the winnt.h include. So this:

#include

needs to be:

#include "basetsd.h"

This was mentioned in the instructions, however I changed the winnt.h in the original platform SDK directory and not the new directory created under the VC folder as a workaround for the directory bug. The bug is mentioned for Beta 2, and I am using production, so I'm not sure if this is still necessary, however I did start out trying to use the original Platform SDK directory for my references and it was a no-go. Maybe someone can confirm.

- Keith
#2
11/21/2005 (10:53 am)
Okay, having a bit of another problem.

Everything compiles fine when I do a rebuilt of torquedemo project in DEBUG configuration. When I change it to Release, I get all sorts of other errors.

Is there something special I need to do when doing the Release build? Its as if something isn't being included.

Thanks again - Keith