title: How do I create both a .lib file and an .exe file in Visual C++?
body: <p>I currently have a console project which creates an .exe file; I want it to also create a .lib file so other projects, compiled as DLLs, would be able to call functions from the original project.</p>
  
  <p>I know it is possible, but I couldn't find how to do that. How do I tell the linker to also link a .lib?</p>