技术派-如果编译提示winnt.h(222):error C2146错误

如果编译的时候,出现如下错误:

\Microsoft Studio 8\VC\PlatformSDK\include\winnt.h(222):error C2146:

语法错误:缺少“;”(在标识符"PVOID64"的前面)

\Microsoft Studio 8\VC\PlatformSDK\include\winnt.h(222):error C4430:

缺少类型说明符 - 假定为 int。注意:C++不支持默认 int

只需要在\Microsoft Studio 8\VC\PlatformSDK\include\winnt.h的Line220行,添加如下一行即可:

#define POINTER_64 __ptr64

重新编译

posted @ 2019-12-11 10:22  凌志辉  阅读(611)  评论(0编辑  收藏  举报