消除warning LNK4099

查看库文件对应的obj文件列表:

1、打开Visual Studio Command Prompt,在命令行下切换到指定项目的目录下。

2、输入命令:
   lib /list xxx.lib > tmp.txt
   more tmp.txt。

查看obj文件对应的调试数据库文件位置:

dumpbin /section:.debug$T /rawdata xxx.obj > tmp.txt
more tmp.txt

此方法可用于消除如下警告信息:

xxx.lib(xxx.obj) : warning LNK4099: PDB 'xxx.pdb' was not found with 'xxx.lib(xxx.obj)' or at 'C:\dev\lib.pdb'; linking object as if no debug info

posted @ 2018-04-11 09:12  lichongbin  阅读(1442)  评论(0编辑  收藏  举报