VS2005错误 missing ';' before identifier 'PVOID64

简介:

问题:

    1>d:/program files/microsoft visual studio 8/vc/platformsdk/include/winnt.h(223) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
1>d:/program files/microsoft visual studio 8/vc/platformsdk/include/winnt.h(223) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:/program files/microsoft visual studio 8/vc/platformsdk/include/winnt.h(5941) : error C2146: syntax error : missing ';' before identifier 'Buffer'
1>d:/program files/microsoft visual studio 8/vc/platformsdk/include/winnt.h(5941) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:/program files/microsoft visual studio 8/vc/platformsdk/include/winnt.h(5941) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-in

解决方法:

     在winnt.h文件中修改:

添加:#define POINTER_64 __ptr64

在typedef void *PVOID;   typedef void * POINTER_64 PVOID64;这两句之前。

    原因opencv的定义与微软的有差异,而引起的。

本文转自博客园知识天地的博客,原文链接:VS2005错误 missing ';' before identifier 'PVOID64,如需转载请自行联系原博主。

相关文章
|
10月前
VC6:missing ‘;‘ before ‘type‘
VC6:missing ‘;‘ before ‘type‘
50 0
|
7月前
|
编译器
解决Invalid bound statement (not found)错误~
解决Invalid bound statement (not found)错误~
|
9月前
|
Linux
Specified sample format -1 is invalid or not supported
Specified sample format -1 is invalid or not supported
134 0
Specified sample format -1 is invalid or not supported
|
计算机视觉
opencv出错:error: (-213:The function/feature is not implemented) Unknown/unsupported array type
opencv出错:error: (-213:The function/feature is not implemented) Unknown/unsupported array type
403 0
|
Java Maven
invalid LOC header (bad signature) 错误解决办法
invalid LOC header (bad signature) 错误解决办法
517 0
|
Java Maven Android开发
Maven项目报错invalid LOC header (bad signature)
Maven项目报错invalid LOC header (bad signature)
107 0
Maven项目报错invalid LOC header (bad signature)
|
XML SQL 数据格式
Invalid bound statement (not found)错误的可能原因
Invalid bound statement (not found)错误的可能原因
424 0
|
Linux
WARNING: Re-reading the partition table failed with error 22: Invalid argument
在划分磁盘分区时,遇到错误“WARNING: Re-reading the partition table failed with error 22: Invalid argument” 如下所示: [root@DB-Server u02]# fdisk -l   Disk /dev/sda: 500.
2469 0
|
JSON 数据格式
报错:JSONException: illegal identifier
报错:JSONException: illegal identifier : \pos 1, line 1, column 2 或JSONException: not close json text, token : error
4125 0
如何处理错误消息Unable to install breakpoint due to missing line number attributes
如何处理错误消息Unable to install breakpoint due to missing line number attributes
158 0
如何处理错误消息Unable to install breakpoint due to missing line number attributes

热门文章

最新文章