Game Development Community

Compiling RTS with Visual studio 2008

by shahin esmaeel doost · in RTS Starter Kit · 03/18/2009 (3:13 am) · 6 replies

When building rts in Visual studio 2008 I got these errors:

Error 1 error C2146: syntax error : missing ';' before identifier 'PVOID64' c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 236
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 236
Error 3 error C2146: syntax error : missing ';' before identifier 'Buffer' c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 7818
Error 4 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 7818
Error 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 7818
Error 14 error C2146: syntax error : missing ';' before identifier 'PVOID64' c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 236
Error 15 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 236
Error 16 error C2146: syntax error : missing ';' before identifier 'Buffer' c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 7818
Error 17 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 7818
Error 18 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 7818

whats the problem?

About the author

Recent Threads


#1
03/18/2009 (1:32 pm)
Likely the same as this problem

www.garagegames.com/community/forums/viewthread/43248

#2
01/13/2010 (2:40 am)
I'm using VS8 and same issue

Moved these to the bottom -
under tools -> options : VC++ Directories
$(WindowsSdkDir}bin
$(FrameworkSdkDir}bin

And also under
Show
: Executable
: Include Files
: Library

- still the same failures.

7>c:program filesmicrosoft sdkswindowsv6.0aincludewinnt.h(236) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
7>c:program filesmicrosoft sdkswindowsv6.0aincludewinnt.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
7>c:program filesmicrosoft sdkswindowsv6.0aincludewinnt.h(7818) : error C2146: syntax error : missing ';' before identifier 'Buffer'
7>c:program filesmicrosoft sdkswindowsv6.0aincludewinnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
7>c:program filesmicrosoft sdkswindowsv6.0aincludewinnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
...
7>Build log was saved at "file://t:TorqueRTSStarterKitengineout.VC6.DEBUGBuildLog.htm"
7>RTS - 116 error(s), 0 warning(s)
========== Rebuild All: 4 succeeded, 3 failed, 0 skipped ==========
#3
01/15/2010 (12:14 pm)
Just exactly what Include directories does VC++ show, when you look at
Tools -> Options -> Projects and Solutions -> VC++ Directories ?

I have VC++ 2008, and I have four Include dirs:

$(VCInstallDir)include
$(VCInstallDir)atlmfc\include
$(WindowsSdkDir)\include
$(FrameworkSDKDir)include

and I'm compiling the RTS-SK ok.
#4
01/16/2010 (7:41 am)
Hi Geom.

Sorry for just pop out of nowere! You probably know who i am. You comment on my Blog South Africa Boer Wars! I got Help with my project {It is an RTS game} I went thru your RTS game...well done! What i want to ask is - If you can assist me in my RTS game with Advice on some Ranks etc. Casue i am still new to Torque, & you are the one guy around here seems like to Understand this RTS stuff etc!

southafricaboerwars@yahoo.com

You can give me an shout if you will consider to give advice etc!

Best of Regards
Dewaldt Steenkamp
#5
01/17/2010 (7:39 pm)
After 8+ hours of trying to make it work - I re-downloaded it from GG and realized I had an old code base!

I had purchased TGE + RTS kit years back, and had neglected to DL latest versions of code.

When I got the latest version, it builds fine -- so no point in troubleshooting why it didnt work.

Now, onto adding as much functionality as possible in 6 weeks -- using the RTS kit for my class project.
#6
01/21/2010 (1:27 pm)
@Dewaldt I think it'd be better just to post questions to the forums where everyone can benefit from them. Plus I often can't actually remember specific details about the standard RTS-SK because my code base has become very different (it's been evolving a long time), and other people can often answer better.