Game Development Community

Problem compiling Torque with Visual studio 2005

by Ali Khan · in Technical Issues · 08/09/2006 (2:08 am) · 4 replies

HI,

I have just installed visual studio 2005 and I was trying to compile TGE with it, but I am getting a lot of errors.

The problem is the errors are coming in VC's own files,

C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


PLus in torque files

..\engine\platformWin32\winFont.cc(221) : error C2664: 'CreateFontW' : cannot convert parameter 14 from 'UTF1 Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast6 [512]' to 'LPCWSTR'


And of course a lot of warnings


Can somebody help me please ?

#1
08/09/2006 (2:55 am)
OKay I downloaded the patch for VC 2005 from the TDN, now the compilation errors are gone, but I still get a linking error

LINK : fatal error LNK1181: cannot open input file 'engine_DEBUG.lib'

I can't find this lib anywhere in my SDK folder,
#2
08/09/2006 (12:30 pm)
Did you try cleaning the project?
#3
08/09/2006 (12:39 pm)
Did you set up the compiler? There is a resource on the site to set up the compiler correctly search for "VS Express"
#4
08/09/2006 (11:59 pm)
I tried a clean rebuild a number of times but it didn't work

Then I started rebuilding projects one by one and now its working.

I do get the engine_DEBUG.lib built and hence no linking errors.

Thanks anyways !!