Game Development Community

Error compiling TSE on MSVC++ 6.0 SP6

by Blas · in Technical Issues · 06/28/2004 (1:56 pm) · 4 replies

Errors compiling HEAD version of TSE:

d:\tse\engine\platformwin32\windinputdevice.h(27) : error C2146: syntax error : missing ';' before identifier 'smDInputInterface'
d:\tse\engine\platformwin32\windinputdevice.h(27) : error C2501: 'smDInputInterface' : missing storage-class or type specifiers
d:\tse\engine\platformwin32\windinputdevice.h(50) : error C2146: syntax error : missing ';' before identifier 'mDevice'
d:\tse\engine\platformwin32\windinputdevice.h(50) : error C2501: 'LPDIRECTINPUTDEVICE8' : missing storage-class or type specifiers
d:\tse\engine\platformwin32\windinputdevice.h(50) : error C2501: 'mDevice' : missing storage-class or type specifiers
d:\tse\engine\platformwin32\windirectinput.h(31) : error C2146: syntax error : missing ';' before identifier 'mDInputInterface'
d:\tse\engine\platformwin32\windirectinput.h(31) : error C2501: 'LPDIRECTINPUT8' : missing storage-class or type specifiers


Error executing cl.exe.

TSE_DEBUG.exe - 52 error(s), 1 warning(s)
----------------------------------------------------------

DirectX SDK (Summer 2003) installed

nVidia 4 with latest drivers

WinXP - all updates

MSVC++ 6.0 with SP6

Anyone have any ideas?

Thanks!
Blas

ps tge works fine : )

#1
06/28/2004 (2:16 pm)
Did you install the DX9 SDK before you installed MSVC++?


If so, then uninstall the DX9 SDK completely and then reinstall it. If not then you'll need to get the DX8 SDK and install it also.


BTW, I didn't know there was an SP6, I thought 5 was the last, did you typo, or should I go update?
#2
06/28/2004 (11:12 pm)
There is a SP6, but I have no idea if it breaks anything. I installed it, but I did not know of this DX9.0 SDK issue. I'm just glad I got things working on .NET, I prefer it because of it's ease of moving around within the files. I have some buddies that swear by 6.0 though. To each his own, as long as when you share things, they work :)
#3
06/28/2004 (11:23 pm)
This is due to the include and lib paths for directx not appearing before the VC 6.0 system and lib paths, causing the compile to pick up the very old version of the DX headers that come with VC6.0

The solution is to ensure that the DX9SDK include and lib paths appear first in the list of include and lib directories (found under tools, options, directories tab
#4
06/30/2004 (2:40 pm)
Confirmed - good call Peter, I'm adding that to the FAQ and docs.

FYI, I'm using SP6 at home with no problems, should be OK.