VS 2010显示错误但运行程序

时间:2013-04-11 20:48:58

标签: visual-studio-2010 visual-c++ opencv

当我在opencv c ++ visual studio 2010中运行我的程序时程序运行但我显示以下错误,这个错误想要进一步安装什么?

'WK01.exe': Loaded 'C:\Users\Sheikh\Documents\Visual Studio 2010\Projects\WK01\Debug\WK01.exe', Symbols loaded.
'WK01.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Program Files\Alwil Software\Avast5\snxhk.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\opencv_core244d.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'WK01.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'WK01.exe': Loaded 'C:\Windows\System32\opencv_highgui244d.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'WK01.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
'WK01.exe': Loaded 'C:\Windows\System32\avifil32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\msacm32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\avicap32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\version.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\opencv_ffmpeg244.dll', Binary was not built with debug information.
'WK01.exe': Loaded 'C:\Windows\System32\wsock32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\nsi.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file
'WK01.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file
The program '[4156] WK01.exe: Native' has exited with code 0 (0x0).

1 个答案:

答案 0 :(得分:0)

这些不是错误,它们只是来自调试器的信息性消息。

当程序在调试模式下编译(并且可选地在发布模式下)时,还会生成.pdb文件,该文件将源代码中的函数名称和变量名称与编译代码中的相应位置相关联。这是Visual Studio在您逐步执行程序时用来向您显示源代码和变量值的信息。

这里发生的一切就是你的程序在调试器中运行并且正在加载系统DLL和其他没有.pdb文件的模块,因此它告诉你它无法显示这些模块的等效源代码。

概要。这是正常的,而不是错误。