syntax error : missing ';' before identifier 'PVOID64' when compiling winnt.h

前端 未结 6 1134
夕颜
夕颜 2021-01-04 10:57

I\'ve recently got the source-code on a application. When im trying to build the solution, I get an error in all parts where winnt.h is included. The error code

6条回答
  •  南笙
    南笙 (楼主)
    2021-01-04 11:20

    It looks like your configuration of the Windows SDK is invalid. This error is caused by the fact that the compiler is unable to recognize the 'POINTER_64' statement. You may workaround this problem by replacing 'POINTER_64' with '__ptr64'.

    I had the same issue recently. Then I've reinstalled the latest version of the Windows SDK and this fixed the problem.

    UPDATE @David Heffernan, correctly points to the fact that one should include windows.h instead of winnt.h

提交回复
热议问题