How to work with third-party C ++ libraries LNK4099 Warning in VisualStudio

I have a Visual Studio C ++ project where I use the layout linker

/WX (TreatWarningsAsLinkerErrors=true)

In Debug, I am compiling with / Zi (Debug Database), which works fine.

Now I have a third-party SDK that comes with a static library, but not with a .pdb file. As soon as I link this file in Debug, I get

LNK4099: 3rd-party.lib(3rd-party.obj) : warning LNK4099: PDB "vc90.pdb" was not found "3rd-party.lib(3rd-party.obj)" or with "C:\OutDir\vc90.pdb"

Please note that this message is misleading since placing vc90.pdb next to 3rd-party.lib does not solve the problem, because the source code and pdb of this third-party library are not available, so the linker is still complaining.

To get rid of this linker warning, what are my options?

+4
1

VS post 2010 ( 2012/2013/2015) - /ignore: 4099 . . , 2012 ... , ", ".

... "// /Visual studio 2010 [2008/VC6/...]", , , lib lib /list obj.lib. obj, lib, lib /extact ../path/to/my/obj. THEN dumpbin /section:.debug$ pdb... /fd pdb. - . , : https://cldoten.wordpress.com/2009/07/01/vs2008-fixing-the-warning-pdb-vc90-pdb-not-found/ , .

, , , , .

+2

All Articles