User forums > Help

Compiler problems (WinNT.h)

(1/2) > >>

ChrisyB:
Hey,

For the last 4 years I've been using MSVC++6, but recently downloaded and installed the Microsoft toolkit 2003.  I'm not really one to be using a command line compiler (well anything to do with a command shell if I can help it) so I went looking for an IDE, stumbled across Code::Blocks.

I'm happy, I like Code::Blocks.  And will be even happier if someone can help me.  I've followed the instuctions for setting Code::Blocks up with MS Toolkit 2003 and have also tried several things I've picked up on from these forums.

I've installed both MS toolkit 2003 and MS Platform SDK, and set up Code::Blocks to find the 'lib' and 'include' folders for them both.

But when I compile, I get 5 errors:

--- Code: ---C:\Program Files\Microsoft Platform SDK\Include\WinNT.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
C:\Program Files\Microsoft Platform SDK\Include\WinNT.h(222) : error C2501: 'PVOID64' : missing storage-class or type specifiers
C:\Program Files\Microsoft Platform SDK\Include\WinNT.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer'
C:\Program Files\Microsoft Platform SDK\Include\WinNT.h(5940) : error C2501: '_FILE_SEGMENT_ELEMENT::PVOID64' : missing storage-class or type specifiers
C:\Program Files\Microsoft Platform SDK\Include\WinNT.h(5940) : error C2501: '_FILE_SEGMENT_ELEMENT::Buffer' : missing storage-class or type specifiers
--- End code ---


Does anyone have any ideas on what I should do to sort this out?

Any ideas and help would be very nice.

Thanks in advance, Chris.

Anonymous:
Yeah, I got the same errors too :/

Help us! ;)

Yann.

mandrav:
Please post a minimal sample file to compile and produce this error.

Yiannis.

ChrisyB:
Hey,

I managed to find a way around this problem, you could call it a solution but it's a bit of a step backwards really.  I intended to post this shortly after I solved it but I've had a few other prioritys.

To solve the problem I downloaded and installed an older version on the MS platform SDK, it can be found here:
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm

I may try and see if I can get the MS Platform SDK 2003 w/ SP1 to work someday when I have more free time, but for now everything is working nicely.

Once more I have to complement you on your IDE, it's a joy to work in.

polygon7:
I had folowing errors too. Try to put PSDK include and lib paths first (on the top) in the Compiler -> Directories -> Compiler/Linker tabs.

// Edit: This solution is from here: http://error-bank.com/microsoft.public.dotnet.general/141796_Thread.aspx

Navigation

[0] Message Index

[#] Next page

Go to full version