• 9424阅读
  • 5回复

[提问]关于VS2010编译后出现找不到PDB文件的警告 [复制链接]

上一主题 下一主题
离线heyiufo
 

只看楼主 倒序阅读 楼主  发表于: 2012-07-04
请教高手一个问题,这几天我在学习VS2010结合QT编程,编译一个hello程序,提示找不到PDB文件,但编译是成功的,可以运行程序,请问怎么解决这个问题!

我在安装VS2010后,按照网上有人贴出来的方法编译QT源代码(http://www.cnblogs.com/elect-fans/archive/2012/03/29/2422816.html),在configure完成后,没有执行清理命令和不加参数-prex,这两个措施就是为了避免出现找不到PDB文件警告的,编译成功后,又继续安装了qt-vs-addin-1.1.10,打开VS2010,在其菜单中出现了QT选项,我打开一个hello例子进行编译,编译好后正常运行hello程序,但在编译状态栏中出现了很多找不到PDB文件的警告,请问高手们这是怎么回事,怎么解决这个问题!

谢谢
离线XChinux

只看该作者 1楼 发表于: 2012-07-04
是提示哪个pdb文件找不到?你编译后生成的pdb文件都应该在 Qt lib目录下啊。
VC自己的.pdb,它会自动拷贝的吧?
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
离线heyiufo

只看该作者 2楼 发表于: 2012-07-04
谢谢,我晚上回去再仔细看看,是哪些PDB文件找不到
离线heyiufo

只看该作者 3楼 发表于: 2012-07-05
回 1楼(XChinux) 的帖子
“hello.exe”: 已加载“D:\Test_program\test\chap01\hello\debug\hello.exe”,已加载符号。
“hello.exe”: 已加载“C:\Windows\System32\ntdll.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\kernel32.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\KernelBase.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\gdi32.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\user32.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\lpk.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\usp10.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\msvcrt.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\oleaut32.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\ole32.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\rpcrt4.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\imm32.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\msctf.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\winmm.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\winspool.drv”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\ws2_32.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\nsi.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\advapi32.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\sechost.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\shell32.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\shlwapi.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\nvinit.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Program Files\NVIDIA Corporation\coprocmanager\detoured.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Program Files\NVIDIA Corporation\coprocmanager\Nvd3d9wrap.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\setupapi.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\cfgmgr32.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\devobj.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Program Files\NVIDIA Corporation\coprocmanager\nvdxgiwrap.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\uxtheme.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\dwmapi.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\cryptbase.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Program Files\ThinkPad\Bluetooth Software\BtMmHook.dll”,Cannot find or open the PDB file
“hello.exe”: 已加载“C:\Windows\System32\psapi.dll”,Cannot find or open the PDB file
程序“[2556] hello.exe: 本机”已退出,返回值为 0 (0x0)。


以上就是出现在输出状态栏中的内容
离线heyiufo

只看该作者 4楼 发表于: 2012-07-05
“quit.exe”: 已加载“D:\Test_program\test\chap01\quit\debug\quit.exe”,已加载符号。
“quit.exe”: 已加载“C:\Windows\System32\ntdll.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\kernel32.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\KernelBase.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\gdi32.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\user32.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\lpk.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\usp10.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\msvcrt.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\oleaut32.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\ole32.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\rpcrt4.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\imm32.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\msctf.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\winmm.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\winspool.drv”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\ws2_32.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\nsi.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\advapi32.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\sechost.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\shell32.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\shlwapi.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\nvinit.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Program Files\NVIDIA Corporation\coprocmanager\detoured.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Program Files\NVIDIA Corporation\coprocmanager\Nvd3d9wrap.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\setupapi.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\cfgmgr32.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\devobj.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Program Files\NVIDIA Corporation\coprocmanager\nvdxgiwrap.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\uxtheme.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\dwmapi.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\cryptbase.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Program Files\ThinkPad\Bluetooth Software\BtMmHook.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\System32\psapi.dll”,Cannot find or open the PDB file
“quit.exe”: 已加载“C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.17514_none_ec83dffa859149af\comctl32.dll”,Cannot find or open the PDB file
程序“[4232] quit.exe: 本机”已退出,返回值为 0 (0x0)。


以上内容是编译例子  quit  后出现的警告,  不知道为什么, 很烦人
离线heyiufo

只看该作者 5楼 发表于: 2012-07-05
我仔细地对比了一下上面的这两个例子编译后, 出现的警告好像是一样的, 另外,我还编译了age这个例子, 出现的警告也是一样的, 不知道是什么原因造成的
快速回复
限100 字节
 
上一个 下一个