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,如需转载请自行联系原博主。

相关文章
|
5月前
Invalid bound statement (not found)错误【已解决】
Invalid bound statement (not found)错误【已解决】
94 1
|
5月前
|
Python
【已解决】WARNING: Ignoring invalid distribution xxx
【已解决】WARNING: Ignoring invalid distribution xxx
VC6:missing ‘;‘ before ‘type‘
VC6:missing ‘;‘ before ‘type‘
68 0
|
编译器
解决Invalid bound statement (not found)错误~
解决Invalid bound statement (not found)错误~
|
XML SQL 数据格式
Invalid bound statement (not found)错误的可能原因
Invalid bound statement (not found)错误的可能原因
749 0
|
JSON 数据格式
报错:JSONException: illegal identifier
报错:JSONException: illegal identifier : \pos 1, line 1, column 2 或JSONException: not close json text, token : error
4605 0