title: Visual C++ 2008 can't include its own static library
body: <p>I have two projects: a <strong>static library</strong> and a <strong>DLL</strong> that will link statically to this static library. Let's assume:</p>
  
  <pre><code>foo.lib (static library)
  bar.dll (links against foo.lib)
  </code></pre>
  
  <p>foo.lib has the following function:</p>
  
  <pre><code>fooFile(...);
  </code></pre>
  
  <p>I successfully built the statically lib and dumpbin /symbols tells me that the function is there (although with some name mangling). When trying to link it against the bar.dll project, I get the following error:</p>
  
  <pre><code>error LNK2019: unresolved external symbol _fooFile referenced in function _fooSomething
  </code></pre>
  
  <p>Why is this failing? The same code works without issues in a Linux environment.</p>