错误:无法在VS C ++ 2010中找到或打开PDB文件错误

时间:2014-03-09 02:25:49

标签: c++ opencv camera-calibration

我最近尝试使用c ++和openCV进行相机校准,给出了此链接上的源代码http://docs.opencv.org/doc/tutorials/calib3d/camera_calibration/camera_calibration.html#source-code

但是当我调试它时,它给了很多错误,比如

cannot find or open PDB file 

'Native has exited with code -1

我该怎么做才能避免这些错误?

'ConsoleApplication1.exe': Loaded 'C:\Users\jay\Documents\Visual Studio 2010\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe', Symbols loaded.
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\opencv\build\x86\vc11\bin\opencv_calib3d248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\opencv\build\x86\vc11\bin\opencv_core248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\msvcp110.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\msvcr110.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\opencv\build\x86\vc11\bin\opencv_flann248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\opencv\build\x86\vc11\bin\opencv_imgproc248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\opencv\build\x86\vc11\bin\opencv_features2d248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\opencv\build\x86\vc11\bin\opencv_highgui248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18201_none_ec80f00e8593ece5\comctl32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\avifil32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\msacm32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\avicap32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\version.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
The program '[3836] ConsoleApplication1.exe: Native' has exited with code -1 (0xffffffff).

2 个答案:

答案 0 :(得分:0)

对于Windows / System中的所有文件,并不多。您不太可能拥有或需要调试器符号。只是不要试图介入它们。

对于其他人,您需要在调试模式下从源代码构建以获取PDB符号文件。如果你没有它们,你就无法调试它们。这可能是您的项目文件存在问题。

最后的错误可能是无关的。错误不会阻止任何运行,它们只是阻止你调试。

答案 1 :(得分:0)

'Native已退出,代码为-1'表示程序(即main)返回-1。

换句话说,在return -1;中查找main

当您无权访问DLL的调试器符号时,“pdb”错误是正常的。

相关问题