title: link.exe returns error LNK1181: cannot open input file 'C:\Program.obj'
body: <p>I'm compiling with a Batch file containing</p>
  
  <pre><code>@echo off
  
  set link=C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link
  
  "%link%" external_input.obj periodic_dinger.obj flagger.obj monitor.obj main.obj libGui.lib libCore.lib libCint.lib libRIO.lib libNet.lib libHist.lib libGraf.lib libGraf3D.lib libGpad.lib libTree.lib libRint.lib libPostscript.lib libMatrix.lib libPhysics.lib libMathCore.lib libThread.lib
  </code></pre>
  
  <p>All the objects and libraries are in the same directory, which is the directory I'm executing the Batch file from, and also where the Batch file is located. I've tried adding the current directory to <code>/LIBPATH:</code>, but no luck. My <code>LIB</code> environment variable is</p>
  
  <pre><code>C:\Users\jroth\Data\online_monitor_v.0.5&gt;echo %LIB%
  "C:\Program Files\ (x86)\Microsoft Visual Studio 11.0\VC\LIB";"C:\Program Files
  (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB";"C:\Program Files (x86)\Window
  s Kits\8.0\lib\win8\um\x86";
  </code></pre>
  
  <p>I made sure that everything was quoted. The same error came up when everything was unquoted. The error verbatim is</p>
  
  <pre><code>C:\Users\jroth\Data\online_monitor_v.0.5&gt;make
  Microsoft (R) Incremental Linker Version 11.00.50727.1
  Copyright (C) Microsoft Corporation.  All rights reserved.
  
  C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\link
  LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'
  </code></pre>
  
  <p><code>make.bat</code> is the name of the batch file I'm using to link this, not a makefile.</p>
  
  <p>I'm running <code>vcvarsall.bat</code> before doing any of this.</p>