• Visual Studio 201x warning: Cannot find or open the PDB file


    visual studio 2010 正常运行后在output window 跳出一堆warnings:

    'Shaders.exe': Loaded 'C:Documents and SettingsUserMy DocumentsVisual Studio        2010ProjectsShadersWin32DebugShaders.exe', Symbols loaded.
    'Shaders.exe': Loaded 'C:WINDOWSsystem32
    tdll.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32kernel32.dll', Cannot find or open the PDB  file
    'Shaders.exe': Loaded 'C:qt-everywhere-opensource-src-4.8.3inQtCored4.dll', Symbols  loaded.
    'Shaders.exe': Loaded 'C:WINDOWSsystem32user32.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32gdi32.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32ole32.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32advapi32.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32
    pcrt4.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32secur32.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32msvcrt.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32ws2_32.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32ws2help.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32msvcp100d.dll', Symbols loaded.
    'Shaders.exe': Loaded 'C:WINDOWSsystem32msvcr100d.dll', Symbols loaded.
    'Shaders.exe': Loaded 'C:qt-everywhere-opensource-src-4.8.3inQtGuid4.dll', Symbols loaded.
    'Shaders.exe': Loaded 'C:WINDOWSsystem32comdlg32.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32comctl32.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32shell32.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32shlwapi.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32oleaut32.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32imm32.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32winmm.dll', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:WINDOWSsystem32winspool.drv', Cannot find or open the PDB file
    'Shaders.exe': Loaded 'C:qt-everywhere-opensource-src-4.8.3inQtOpenGLd4.dll', Symbols loaded.

    虽然可以在编译选项里面加入 _CRT_SECURE_NO_WARNINGS, 但是出现这种warning,还是想处理一下。


    PDB是visual studio用于debug的信息文件, 属于系统的dll, 因此解决方法有以下几种:

    (1) 关闭debug模块加载错误提示,方法是依次打开 Tools -> Options -> Debugging -> Output Window -> Module Load Messages -> Off

    (2) 下载PDB文件,依次打开 Tools->Options->Debugging->Symbols 在 "Microsoft Symbol Servers" 的复选框上打勾

    推荐使用第一种方法,每次打开project都要加载一大堆PDB,还是比较难以容忍的.
  • 相关阅读:
    Verilog之阻塞赋值非阻塞赋值
    Verilog之case语句
    Verilog 分频器
    kvm虚拟化存储管理(3)
    kvm虚拟机管理(2)
    Kvm 虚拟化介绍(1)
    云计算 大数据 人工智能
    openstack核心组件——cinder存储服务(11)
    openstack核心组件——horizon Web管理界面(10)
    openstack核心组件——neutron网络服务 抓取ip(9)
  • 原文地址:https://www.cnblogs.com/make217/p/5605210.html
Copyright © 2020-2023  润新知