title: How to force MSVC to link an unused static library (Equivalent of GCCs --whole-archive parameter)
body: <p>There is a static library which is used by the main program indirectly. Therefore there is no missing reference and the static library is not linked.</p>
  
  <p>The same problem was posted <a href="https://stackoverflow.com/questions/14116420/how-to-force-gcc-to-link-an-unused-static-library">here</a> for the GCC. And the proposed solution worked for me as well. But now I need to build the program with MSVC. So I suppose that I need the equivalent of GCC's <code>--whole-archive</code> parameter?</p>
  
  <p>At the moment the linker call is like that: <code>link.exe /nologo /out:program.exe staticLib.lib main.obj</code></p>
  
  <p>Can someone help me with that?</p>