title: How do you add a C++ project reference in Visual Studio?
body: <p>In C# it's pretty simple to add a project reference that will build the dependency, put the resulting assembly in the original's Debug/ directory and properly compile against that assembly.</p>
  
  <p>So at the moment, I have a project with the Main() and a static library project in one solution.  However, when I compile the Main() project and I look in the bin/Debug/ directory I don't find either the Static.lib file or the .obj files, which I think would need to be there, or something... I'm getting linker errors.</p>
  
  <p>I think maybe I have to Configure the project to find the .obj and the .lib file produced by the static library project (which compiles fine, and actually produces those files.)</p>
  
  <p>I'm missing something, and I'm not very well versed in Visual Studio with C++.</p>
  
  <p>How do I add the reference in the Main project to use the library produced by the static library project?</p>