积极答复者
fatal error C1083: 无法打开包括文件:“highgui.h”: No such file or directory

问题
-
生成日志 重新生成 已启动: 项目: 5655556,配置: Debug|Win32
命令行 正在创建临时文件“e:\C++程序\5655556\5655556\Debug\RSP0000044676868.rsp”,其内容为 [ /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Yu"stdafx.h" /Fp"Debug\5655556.pch" /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /c /ZI /TP ".\5655556.cpp" ] 正在创建命令行“cl.exe @"e:\C++程序\5655556\5655556\Debug\RSP0000044676868.rsp" /nologo /errorReport:prompt” 正在创建临时文件“e:\C++程序\5655556\5655556\Debug\RSP0000054676868.rsp”,其内容为 [ /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MDd /Yc"stdafx.h" /Fp"Debug\5655556.pch" /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /c /ZI /TP ".\stdafx.cpp" ] 正在创建命令行“cl.exe @"e:\C++程序\5655556\5655556\Debug\RSP0000054676868.rsp" /nologo /errorReport:prompt”
输出窗口 正在编译... stdafx.cpp 正在编译... 5655556.cpp e:\c++程序\5655556\5655556\5655556.cpp(7) : fatal error C1083: 无法打开包括文件:“highgui.h”: No such file or directory
结果 生成日志保存在“file://e:\C++程序\5655556\5655556\Debug\BuildLog.htm” 5655556 - 1 个错误,0 个警告
- 已移动 Andrew.Wu 2011年4月1日 2:31 (发件人:Visual Studio 相关讨论(Visual Studio 2010以前版本))
答案
-
highgui.h这个h头文件没有找到,您看看路径对吗?
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.- 已编辑 VisualElevenModerator 2011年4月1日 7:46 错误
- 已标记为答案 VisualElevenModerator 2011年4月7日 6:15
-
Hi 52065111314,
这个错误有可能由于以下几个原因导致:
1. 您的文件名错误;
2. 文件,子目录,或者磁盘是只读的;
3. 您没有权限访问这个文件或目录;
4. 您的INCLUDE环境变量设置错误;
更多信息看:http://msdn.microsoft.com/en-us/library/et4zwx34(v=VS.90).aspx
请您确认上面这几点,并作相应的更改,或者您还可以尝试把这个文件删除,然后在工程中重新建一个一样的头文件,再重新编译。
类似的帖子:
http://social.msdn.microsoft.com/Forums/en/Vsexpressvc/thread/906969f4-77de-4bc8-a583-0219eae66e59
谢谢,
Lucy
Lucy Liu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 VisualElevenModerator 2011年4月7日 6:15
全部回复
-
highgui.h这个h头文件没有找到,您看看路径对吗?
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.- 已编辑 VisualElevenModerator 2011年4月1日 7:46 错误
- 已标记为答案 VisualElevenModerator 2011年4月7日 6:15
-
Hi 52065111314,
这个错误有可能由于以下几个原因导致:
1. 您的文件名错误;
2. 文件,子目录,或者磁盘是只读的;
3. 您没有权限访问这个文件或目录;
4. 您的INCLUDE环境变量设置错误;
更多信息看:http://msdn.microsoft.com/en-us/library/et4zwx34(v=VS.90).aspx
请您确认上面这几点,并作相应的更改,或者您还可以尝试把这个文件删除,然后在工程中重新建一个一样的头文件,再重新编译。
类似的帖子:
http://social.msdn.microsoft.com/Forums/en/Vsexpressvc/thread/906969f4-77de-4bc8-a583-0219eae66e59
谢谢,
Lucy
Lucy Liu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 VisualElevenModerator 2011年4月7日 6:15