title: Visual Studio 2008 C++ Compilation: No Lib file Generated
body: <p>I want to build a C++ project as a dll, the procedure I follow is explained <a href="http://msdn.microsoft.com/en-us/library/ms235636%28v=vs.80%29.aspx" rel="nofollow">here</a>. Note that during the project creation stage, I specify the DLL instead of static library. My understanding is that by doing so both a <code>.dll</code> and a <code>.lib</code> will be created.</p>
  
  <p>But after I compile that project, only <code>.dll</code> is created, the <code>.lib</code> file, on the other hand, is not.</p>
  
  <p>The problem of this is that, when I reference that C++ project in another C++ project ( again, using the same procedure <a href="http://msdn.microsoft.com/en-us/library/ms235636%28v=vs.80%29.aspx" rel="nofollow">here</a>), I got a fatal error lnk1104:</p>
  
  <blockquote>
    <p>fatal error LNK1104:cannot open file
    '..\debug\cgapi.lib'</p>
  </blockquote>
  
  <p>Anything I miss in my vcproject setup?</p>