title: C++: What does #pragma comment(lib, "XXX") actually do with "XXX"?
body: <p>My background is C# but I have to maintain some legacy (MS) C++. In that codebase I stumpled across:</p>
  
  <pre><code>#pragma comment(lib, "OtherLib700.lib")
  </code></pre>
  
  <p>where 700 is some versioning. Besides the lib is a DLL with the same name.</p>
  
  <p>I first thought that the program would be dependant upon the DLL but after removing it from the system the program still works. There exists a newer version of the DLL, though, which is named OtherLib900...</p>
  
  <p>It seems as though the program 'included' the code of the lib so that it's no longer dependant upon the external DLL. (Or that the program 'automatically' uses the newer DLL...)</p>
  
  <p>Which one is correct? Is there are way to further confirm that 'assumption'? </p>