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



我最近尝试使用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:UsersjayDocumentsVisual Studio 2010ProjectsConsoleApplication1DebugConsoleApplication1.exe', Symbols loaded.
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32ntdll.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32kernel32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32KernelBase.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:opencvbuildx86vc11binopencv_calib3d248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:opencvbuildx86vc11binopencv_core248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvcp110.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvcr110.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:opencvbuildx86vc11binopencv_flann248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:opencvbuildx86vc11binopencv_imgproc248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:opencvbuildx86vc11binopencv_features2d248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:opencvbuildx86vc11binopencv_highgui248.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32user32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32gdi32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32lpk.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32usp10.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvcrt.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32ole32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32rpcrt4.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32oleaut32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32advapi32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32sechost.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:Windowswinsxsx86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18201_none_ec80f00e8593ece5comctl32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvfw32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32winmm.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32shell32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32shlwapi.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32avifil32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msacm32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32avicap32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32version.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvcp100d.dll', Symbols loaded.
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msvcr100d.dll', Symbols loaded.
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32imm32.dll', Cannot find or open the PDB file
'ConsoleApplication1.exe': Loaded 'C:WindowsSystem32msctf.dll', Cannot find or open the PDB file
The program '[3836] ConsoleApplication1.exe: Native' has exited with code -1 (0xffffffff).

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

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

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

'Native has exit with code -1'表示程序(即main)返回-1。

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

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

相关内容

  • 没有找到相关文章

最新更新