我正在使用opencv,C++和Microsoft Visual Studio 2010來編譯我的代碼,但是我得到了所有這些。無法用代碼1編譯程序出口
'herohuyongtao.exe': Loaded 'C:\Users\DELL\Documents\Visual Studio 2010\Projects\herohuyongtao\Debug\herohuyongtao.exe', Symbols loaded.
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Program Files\AVAST Software\Avast\snxhk.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_core242d.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'herohuyongtao.exe': Loaded 'C:\opencv\build\common\tbb\ia32\vc10\tbb_debug.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_highgui242d.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
'herohuyongtao.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
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\avifil32.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\msacm32.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\msvfw32.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\avicap32.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_imgproc242d.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_objdetect242d.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'herohuyongtao.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
最後它說
The program '[6728] herohuyongtao.exe: Native' has exited with code 1 (0x1).
Apparenly這些都不是errors.I嘗試了幾種解決方案,但沒有結果。任何人都可以幫忙嗎?
您是否嘗試過調試程序?逐步瞭解它爲什麼會發生? – Borgleader
您的程序已編譯或者您無法在調試器中運行它。至少發佈主要功能。 –
「無法找到或打開PDB文件」註釋意味着MSVC無法加載指定文件的調試信息。這通常不是什麼大問題,因爲這些主要是系統庫。 – computerfreaker