【问题标题】:VS 2010 showing error but run the programVS 2010 显示错误但运行程序
【发布时间】:2013-04-12 13:10:10
【问题描述】:

当我在 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).

【问题讨论】:

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


    【解决方案1】:

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

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

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

    总结。这是正常的,不是错误。

    【讨论】: