Game Development Community

VS2005 Compile Issues - PVOID64??

by Todd Barron · in Torque Game Engine · 04/22/2006 (2:49 pm) · 2 replies

When compiling with VS2005 (Professional Edition) I receive the following on every module:

2>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
2>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
2>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer'
2>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Any ideas?

#1
04/23/2006 (12:50 pm)
Yep. Just so happens that the same thing happened to me with VC7. It has to do with the order of the directories. Just make sure that the PlatformSDK paths follow the other paths in TOOLS\OPTIONS\PROJECTS and SOLUTIONS\VC++ DIRECTORIES -- you can highlight the ones that mention PLATFORMSDK and push'm down the list. Don't forget to look at each type of file in the dropdown "Show Directories For:"

Hope this helps.

Don
#2
01/13/2010 (2:38 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 files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
7>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
7>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C2146: syntax error : missing ';' before identifier 'Buffer'
7>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
7>c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h(7818) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
...
7>Build log was saved at "file://t:\Torque\RTSStarterKit\engine\out.VC6.DEBUG\BuildLog.htm"
7>RTS - 116 error(s), 0 warning(s)
========== Rebuild All: 4 succeeded, 3 failed, 0 skipped ==========