VS2010里的"Cannot find or open the PDB file"错误

江户川柯南 2012-07-21 11:26:12
以下是我的程序:
#include "highgui.h"

int main()
{
IplImage* img = cvLoadImage("D:\Documents\Pictures\wolfsrain0.png");
cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE);
cvShowImage("Example1", img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow("Example1");
}
这段程序是抄的《learning opencv》里的,用于从磁盘加载并在屏幕上显示一幅图像。
但我运行之后显示出来的图像是一片灰白,在下方的output里有如下报错信息:

'test.exe': Loaded 'D:\Documents\Visual Studio 2010\Projects\test\Debug\test.exe', Symbols loaded.
'test.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'test.exe': Loaded 'D:\OpenCV\opencv\build\x86\vc10\bin\opencv_highgui231d.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'test.exe': Loaded 'D:\OpenCV\opencv\build\x86\vc10\bin\opencv_core231d.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'test.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'test.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\avifil32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\msacm32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\avicap32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\version.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file
'test.exe': Loaded 'D:\360\360Safe\safemon\safemon.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\psapi.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\wininet.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\normaliz.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\iertutil.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\urlmon.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\nsi.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file
'test.exe': Loaded 'C:\Windows\System32\clbcatq.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x1fc8) has exited with code -1073741510 (0xc000013a).
The program '[7400] test.exe: Native' has exited with code -1073741510 (0xc000013a).

请问错误在哪里?
...全文
1807 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
suixinpiaodang 2012-10-23
  • 打赏
  • 举报
回复
接分了。。。。
newtee 2012-10-20
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 的回复:]

我2掉了……在路径里没有转义反斜杠……
[/Quote]同4楼
xinzi_z 2012-10-20
  • 打赏
  • 举报
回复
我也是菜鸟~请问一下楼主,你说的路径是配置里面的路径么?还是opencv打开文件或者什么的路径~~?
x422938954 2012-10-19
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 的回复:]

楼主 我是菜鸟 我刚不出学问 请问你说的转义反斜杠 是什么意思?
能解释下么?
[/Quote]
就是OPENCV里文件路径的反斜杠要打两个,楼主的路径反斜杠只打了一个
小新小小新 2012-07-22
  • 打赏
  • 举报
回复
接分喽

恭喜LZ自己醒悟
Caworb 2012-07-22
  • 打赏
  • 举报
回复
我来迟一步吗?还有木有分接…
W170532934 2012-07-22
  • 打赏
  • 举报
回复
恭喜楼主解决问题。接分。
Jason_Hughbot 2012-07-22
  • 打赏
  • 举报
回复
楼主 我是菜鸟 我刚不出学问 请问你说的转义反斜杠 是什么意思?
能解释下么?
江户川柯南 2012-07-21
  • 打赏
  • 举报
回复
我2掉了……在路径里没有转义反斜杠……

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧