title: How to remove warning LNK4099: PDB 'lib.pdb' was not found
body: <p>LNK4099 warnings can occur when building on Windows during the link phase of a static compilation.</p>
  
  <p>E.g. when building using nmake and VC10 I get a stream of LNK4099 warnings like:</p>
  
  <pre><code>libcurl_a_debug.lib(rc2_cbc.obj) : warning LNK4099: PDB 'lib.pdb' was not found with 'libcurl_a_debug.lib(rc2_cbc.obj)' or at 'C:\dev\scaler\center\dlux\lib.pdb'; linking object as if no debug info
  </code></pre>
  
  <p>StackOverflow gives a <a href="https://stackoverflow.com/a/660788/939250">good overview of the problem</a>, but not the detail required to understand it.</p>
  
  <p>Rather than <a href="https://stackoverflow.com/a/8746878/939250">ignore the warning</a> or <a href="https://stackoverflow.com/questions/661606/visual-c-how-to-disable-specific-linker-warnings">disable the warning</a>, I would like to fix the makefiles in my build to remove the problem.</p>
  
  <p>How does the problem arise?  How do I remove the cause of the warnings?</p>