lib vs 生成pdb_pdb文件 VS c++编译[通俗易懂]

lib vs 生成pdb_pdb文件 VS c++编译[通俗易懂]使用VS-debug模式下编译的时候,经常出现以下问题:’Dlib.exe'(Win32):Loaded’D:\c++\Dlib\x64\Debug\Dlib.exe’.Symbolsloaded.’Dlib.exe'(Win32):Loaded’C:\Windows\System32\ntdll.dll’.CannotfindoropenthePDBfile.’Dl…

大家好,又见面了,我是你们的朋友全栈君。

使用VS-debug模式下编译的时候,经常出现以下问题:

‘Dlib.exe’ (Win32): Loaded ‘D:\c++\Dlib\x64\Debug\Dlib.exe’. Symbols loaded.

‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\ntdll.dll’. Cannot find or open the PDB file.

‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\kernel32.dll’. Cannot find or open the PDB file.

‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\KernelBase.dll’. Cannot find or open the PDB file.

‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\user32.dll’. Cannot find or open the PDB file.

‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\win32u.dll’. Cannot find or open the PDB file.

‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\gdi32.dll’. Cannot find or open the PDB file.

‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\gdi32full.dll’. Cannot find or open the PDB file.

‘Dlib.exe’ (Win32): Loaded ‘C:\Windows\System32\msvcp_win.dll’. Cannot find or open the PDB file.

上网查看原因,得知是程序输出的地方是Windows系统,而不是vs2010。所以调试的话需要调用系统的一些资源,要到microsoft官网上下载,这样每次调试都比较耗费时间(操作方法:Tools—Options—Debugging—Symbols, 将microsoft symbol servers 勾选上即可),因为每次调试会从官网下载符号服务文件吧。

解决办法,可以按control+F5(build)直接运行,而且这样操作的话dos窗口就不会一闪而过了。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/145021.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号