本来是想新建个工程试一下opencv的,结果按照教程配置完之后,添加了个button,就出了一堆错误stdafx.cpp
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(141): error C2146: 语法错误: 缺少“;”(在标识符“HwndMSWheel”的前面)
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(141): error C2433: “HWND”: 不允许在数据声明中使用“inline”
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(141): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(142): error C2065: “PUINT”: 未声明的标识符
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(142): error C2146: 语法错误: 缺少“)”(在标识符“puiMsh_MsgMouseWheel”的前面)
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(142): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(147): error C2059: 语法错误:“)”
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(148): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(148): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\prsht.h(97): error C2065: “CALLBACK”: 未声明的标识符
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\prsht.h(97): error C2065: “LPFNPSPCALLBACKA”: 未声明的标识符
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\prsht.h(97): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\prsht.h(97): fatal error C1903: 无法从以前的错误中恢复;正在停止编译把原来的工程删掉,重新建了一个,只是添加了个button在上面,再次编译不过,出现这些错误
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(141): error C2146: 语法错误: 缺少“;”(在标识符“HwndMSWheel”的前面)
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(141): error C2433: “HWND”: 不允许在数据声明中使用“inline”
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(141): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(142): error C2065: “PUINT”: 未声明的标识符
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(142): error C2146: 语法错误: 缺少“)”(在标识符“puiMsh_MsgMouseWheel”的前面)
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(142): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(147): error C2059: 语法错误:“)”
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(148): error C2143: 语法错误 : 缺少“;”(在“{”的前面)
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\zmouse.h(148): error C2447: “{”: 缺少函数标题(是否是老式的形式表?)
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\prsht.h(97): error C2065: “CALLBACK”: 未声明的标识符
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\prsht.h(97): error C2065: “LPFNPSPCALLBACKA”: 未声明的标识符
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\prsht.h(97): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\prsht.h(97): fatal error C1903: 无法从以前的错误中恢复;正在停止编译把原来的工程删掉,重新建了一个,只是添加了个button在上面,再次编译不过,出现这些错误
?
双击错误,在一个zmouse.h里
ctrl+f查找#include <windows.h> 找着找着就发现了一行被注释掉的#include<windows.h> 把注释去掉之后,就啥事都没有了...