title: How to use #pragma comment(linker) to add *.obj files? VS2013
body: <p>If i add *.obj file at Project >> Properties >> Linker >> Input >> Additional Dependencies += FileName.obj - it is OK. </p>
  
  <p>How do it in source file?</p>
  
  <p>I can add file *.lib:</p>
  
  <pre><code>#pragma comment(lib, "FileName.lib")
  </code></pre>
  
  <p>BUT i can't add file *.obj:</p>
  
  <pre><code>#pragma comment(linker, "/DEFAULTLIB:FileName.obj")
  </code></pre>
  
  <p>warning LNK4003: invalid library format; library ignored</p>
  
  <p>comment (C/C++) <a href="https://msdn.microsoft.com/en-us/library/7f0aews7.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/7f0aews7.aspx</a></p>
  
  <p>My goal is to write tests for project ConsoleApplication(exe).</p>
  
  <p>I want to link the tests to the object file.</p>
  
  <p><a href="https://msdn.microsoft.com/ru-ru/library/hh419385.aspx" rel="nofollow">https://msdn.microsoft.com/ru-ru/library/hh419385.aspx</a></p>