有关highgui.h的问题,急~
opencv吧
全部回复
仅看楼主
level 2
笨笨_琳琳 楼主
所有程序都无法生成了,怎么办啊~~错误如下~
1>------ 已启动生成: 项目: sheji6, 配置: Debug Win32 ------
1>正在编译...
1>stdafx.cpp
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(117) : error C3646: “cvInitSystem”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(117) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(117) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(119) : error C3646: “cvStartWindowThread”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(119) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(119) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(119) : error C2556: “int (__cdecl *CVAPI(int))(void)”: 重载函数与“int (__cdecl *CVAPI(int))(int,char **)”只是在返回类型上不同
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(117) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(119) : error C2371: “CVAPI”: 重定义;不同的基类型
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(117) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(123) : error C3646: “cvNamedWindow”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(123) : error C2146: 语法错误 : 缺少“,”(在标识符“CV_DEFAULT”的前面)
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(123) : error C2059: 语法错误 : “)”
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(123) : error C2143: 语法错误 : 缺少“)”(在“;”的前面)
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(123) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(123) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(123) : error C2556: “int (__cdecl *CVAPI(int))(const char *,int)”: 重载函数与“int (__cdecl *CVAPI(int))(int,char **)”只是在返回类型上不同
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(117) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : error C3646: “cvShowImage”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : error C2143: 语法错误 : 缺少“,”(在“*”的前面)
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : error C2733: 不允许重载函数“CVAPI”的第二个 C 链接

2013年01月10日 02点01分 1
level 2
笨笨_琳琳 楼主
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(129) : error C3646: “cvResizeWindow”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(129) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(129) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(129) : error C2556: “int (__cdecl *CVAPI(void))(const char *,int,int)”: 重载函数与“int (__cdecl *CVAPI(void))(const char *,const int)”只是在返回类型上不同
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(129) : error C2371: “CVAPI”: 重定义;不同的基类型
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(130) : error C3646: “cvMoveWindow”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(130) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(130) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(130) : error C2556: “int (__cdecl *CVAPI(void))(const char *,int,int)”: 重载函数与“int (__cdecl *CVAPI(void))(const char *,const int)”只是在返回类型上不同
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(134) : error C3646: “cvDestroyWindow”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(134) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(134) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(134) : error C2556: “int (__cdecl *CVAPI(void))(const char *)”: 重载函数与“int (__cdecl *CVAPI(void))(const char *,const int)”只是在返回类型上不同
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(136) : error C3646: “cvDestroyAllWindows”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(136) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(136) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(136) : error C2556: “int (__cdecl *CVAPI(void))(void)”: 重载函数与“int (__cdecl *CVAPI(void))(const char *,const int)”只是在返回类型上不同
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(139) : error C3646: “cvGetWindowHandle”: 未知重写说明符

2013年01月10日 02点01分 2
level 2
笨笨_琳琳 楼主
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(139) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(139) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(139) : error C2733: 不允许重载函数“CVAPI”的第二个 C 链接
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(139) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(142) : error C3646: “cvGetWindowName”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(142) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(142) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(142) : error C2733: 不允许重载函数“CVAPI”的第二个 C 链接
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(142) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(145) : error C2143: 语法错误 : 缺少“)”(在“*”的前面)
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(145) : error C2143: 语法错误 : 缺少“;”(在“*”的前面)
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(145) : error C2059: 语法错误 : “)”
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(145) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(148) : error C3646: “cvCreateTrackbar”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(149) : error C2061: 语法错误 : 标识符“CvTrackbarCallback”
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(149) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(149) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(149) : error C2556: “int (__cdecl *CVAPI(int))(const char *,const char *,int *,int)”: 重载函数与“int (__cdecl *CVAPI(int))(int,char **)”只是在返回类型上不同
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(117) : 参见“CVAPI”的声明
2013年01月10日 02点01分 3
level 2
笨笨_琳琳 楼主
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(210) : error C2143: 语法错误 : 缺少“,”(在“*”的前面)
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(211) : error C2059: 语法错误 : “)”
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(211) : error C2143: 语法错误 : 缺少“)”(在“;”的前面)
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(211) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(211) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(211) : error C2556: “int (__cdecl *CVAPI(int))(const char *,const int)”: 重载函数与“int (__cdecl *CVAPI(int))(int,char **)”只是在返回类型上不同
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(117) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(214) : error C2065: “IplImage”: 未声明的标识符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(214) : error C2059: 语法错误 : “)”
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(215) : error C2065: “CvMat”: 未声明的标识符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(215) : error C2059: 语法错误 : “)”
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(218) : error C2065: “CvMat”: 未声明的标识符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(218) : error C2059: 语法错误 : “)”
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(224) : error C3646: “cvConvertImage”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(224) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(224) : error C2143: 语法错误 : 缺少“,”(在“*”的前面)
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(224) : error C2059: 语法错误 : “)”
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(224) : error C2143: 语法错误 : 缺少“)”(在“;”的前面)
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(224) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(224) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(224) : error C2556: “int (__cdecl *CVAPI(void))(const int)”: 重载函数与“int (__cdecl *CVAPI(void))(const char *,const int)”只是在返回类型上不同
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(126) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(227) : error C3646: “cvWaitKey”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(227) : error C2146: 语法错误 : 缺少“,”(在标识符“CV_DEFAULT”的前面)
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(227) : error C2059: 语法错误 : “)”

2013年01月10日 02点01分 4
level 2
笨笨_琳琳 楼主
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(227) : error C2143: 语法错误 : 缺少“)”(在“;”的前面)
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(227) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(227) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(227) : error C2556: “int (__cdecl *CVAPI(int))(int)”: 重载函数与“int (__cdecl *CVAPI(int))(int,char **)”只是在返回类型上不同
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(117) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(238) : error C3646: “cvCreateFileCapture”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(238) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(238) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(238) : error C2733: 不允许重载函数“CVAPI”的第二个 C 链接
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(238) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(268) : error C3646: “cvCreateCameraCapture”: 未知重写说明符
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(268) : error C2091: 函数返回函数
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(268) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(268) : error C2556: “int (__cdecl *CVAPI(CvCapture *))(int)”: 重载函数与“int (__cdecl *CVAPI(CvCapture *))(const char *)”只是在返回类型上不同
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(238) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(268) : error C2371: “CVAPI”: 重定义;不同的基类型
1> c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(238) : 参见“CVAPI”的声明
1>c:\program files\opencv2.0\vc2008\include\opencv\highgui.h(268) : fatal error C1003: 错误计数超过 100;正在停止编译
1>生成日志保存在“file://e:\2008opencv\sheji6\sheji6\Debug\BuildLog.htm”
1>sheji6 - 128 个错误,0 个警告
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
2013年01月10日 02点01分 5
level 7
自己检查 括号。这种奇葩的错误经常都是 输入 全角字符 ,括号没配对。
2013年01月12日 04点01分 6
1