Sign in to follow this  

PSDK Compile Errors

This topic is 4402 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I just downloaded and installed the Microsoft Platform SDK so I can make WIN32 programs in Visual C++ Express 2005 but when I compile I get these errors. I've looked through my code but I can't find anything that I think is causing them. Does anyone know what's causing them.
TestMain.cpp
F:\Program Files\Microsoft Platform SDK\Include\winnt.h(222) : error
C2146: syntax error : missing ';' before identifier 'PVOID64'
F:\Program Files\Microsoft Platform SDK\Include\winnt.h(222) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
F:\Program Files\Microsoft Platform SDK\Include\winnt.h(5940) : error
C2146: syntax error : missing ';' before identifier 'Buffer'
F:\Program Files\Microsoft Platform SDK\Include\winnt.h(5940) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
F:\Program Files\Microsoft Platform SDK\Include\winnt.h(5940) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
D3DApp.cpp
F:\Program Files\Microsoft Platform SDK\Include\winnt.h(222) : error
C2146: syntax error : missing ';' before identifier 'PVOID64'
F:\Program Files\Microsoft Platform SDK\Include\winnt.h(222) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
F:\Program Files\Microsoft Platform SDK\Include\winnt.h(5940) : error
C2146: syntax error : missing ';' before identifier 'Buffer'
F:\Program Files\Microsoft Platform SDK\Include\winnt.h(5940) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
F:\Program Files\Microsoft Platform SDK\Include\winnt.h(5940) : error
C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
Thanks!

Share this post


Link to post
Share on other sites
Can you make a simplified case which causes the same errors, and then post it? This is usually helpful. Sometimes doing this by itself is enough to answer why it's happening.

It looks like, somehow, POINTER_64 isn't properly defined. Are there any project definitions which might interfere?

Share this post


Link to post
Share on other sites
I am having the exact same problem (I was just about to post a new thread!!). I know my code compiles under VC++ 2003, so if anyone can help me out too I'd appreciate it. Using VC++ 2005 Express, PSDK and ant to build (Yes it is possible!!).

Share this post


Link to post
Share on other sites
Have you copied the Bin, Include, and Lib directories from "C:\Program Files\Microsoft Platform SDK" to "C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK", or are you just trying to get it to use older header files from previous compiler versions?

What I did was create an empty Win32 app and just get that to compile first.

Share this post


Link to post
Share on other sites
Quote:
Original post by iMalc
Have you copied the Bin, Include, and Lib directories...


They are in my enviornment varibles, the compiler would give out if they were not with an error like "Can't find header"

We don't seem to be the only ones having this problem:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=63785&SiteID=1
http://forums.codeblocks.org/index.php?PHPSESSID=59ae7810ce8a421c0a23336c5725f672&topic=332.msg2399

[google] got a few more too. I got a Hello world to compile. EDIT: that is a win32 hello world, not a cout.

Share this post


Link to post
Share on other sites
Quote:
are you compiling as 64 bit??

Cheers
Chris
No, not 64 bit. (can express even do 64 bit?)

So pretty much all I have to do is include this
_WIN32_WINNT>=0x0501
WINVER>=0x0501
?

Share this post


Link to post
Share on other sites
Quote:
Original post by DigiDude
So pretty much all I have to do is include this
_WIN32_WINNT>=0x0501
WINVER>=0x0501
?


#define _WIN32_WINNT 0x501
#define _WINVER 0x501
#define POINTER_64 __ptr64

The above workwed for me.




Share this post


Link to post
Share on other sites

This topic is 4402 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this