Visual C++: How to disable specific linker warnings?

Ashwin Nanjappa picture Ashwin Nanjappa · Mar 19, 2009 · Viewed 103.9k times · Source

I'm using a library from CGAL which during the linking stage of my code compilation produces a lot of linking warnings of this form:

warning LNK4099: PDB 'vc80.pdb' was not found with 'gmp-vc80-mt-sgd.lib' or at 'vc80.pdb'; linking object as if no debug info

How do I turn off this specific linker warning under Visual C++/Studio 2008?

Note that I do not have any control on the external (CGAL) library which I am using. I cannot/donot want to get into recompiling the external library. Hence, the need to fix the messages at my end.

Answer

Aaron Saarela picture Aaron Saarela · Mar 19, 2009

Add the following as a additional linker option:

 /ignore:4099

This is in Properties->Linker->Command Line