title: C++ Visual Studio: linking using pragma comment
body: <p>I came across a piece of code which uses #pragma comment(lib, "libraryname").</p>
  
  <p>Why this type of usage as opposed to just linking the library from the properties menu? In what situations is this usage called for? I am in windows using C++ <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio#Visual_Studio_2010" rel="noreferrer">Visual&nbsp;Studio&nbsp;2010</a>. </p>
  
  <p>It would be nice to see an example which calls for this type of usage.</p>