错误:在VS C ++ 2010中找不到或打开PDB文件错误 [英] Error : Cannot find or open the PDB file error in in VS C ++ 2010

查看:212
本文介绍了错误:在VS C ++ 2010中找不到或打开PDB文件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I recently tried to do a camera calibration using c++ and openCV given the source code found on this link http://docs.opencv.org/doc/tutorials/calib3d/camera_calibration/camera_calibration.html#source-code

但是当我调试它时,它会产生很多错误,例如

but when i debug it it gave many erros like

cannot find or open PDB file 

'Native has exited with code -1

我该如何避免这些错误?

What can i do to avoid these errors?

'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).

推荐答案

本机已退出,代码为-1"表示该程序(即main)返回了-1.

'Native has exited with code -1' means that the program (i.e. main) returned -1.

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

In other words, look for return -1; in your main.

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

The "pdb" errors are normal when you don't have access to debugger symbols for a DLL.

这篇关于错误:在VS C ++ 2010中找不到或打开PDB文件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆