title: Unable to resolve linker error with Qt/C++/NMake - no argument specified with option '/LIBPATH:' (Qt 5.2.0/MSVC 2010)
body: <p>This error started just recently and I haven't been able to make heads or tails of it (I'm pretty new to Qt and QMake).  I am using Qt 5.2.0 and Qt Creator 3.0.0 to compile my project. </p>
  
  <p>I was having some compilation issues with QMake; when attempting to use jom I ran into the issue that it doesn't support parent directories with spaces in the directory name, so I switched to NMake.  Since then I've been getting these errors when I try to compile:</p>
  
  <pre><code>LINK : fatal error LNK1146: no argument specified with option '/LIBPATH:'
  NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.EXE"' : return code '0x47a' Stop.
  NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\nmake.exe"' : return code '0x2' Stop.
  NMAKE : fatal error U1077: 'cd' : return code '0x2'
  </code></pre>
  
  <p>The only LIBPATH variable I can find in my makefiles is on lines that look like this:</p>
  
  <pre><code>LIBS = glu32.lib opengl32.lib gdi32.lib user32.lib qtmain.lib /LIBPATH: /LIBPATH:..\ProjectGUI ProjectGUI.lib /LIBPATH:C:\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\lib 
  C:\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\lib\Qt5Widgets.lib     
  C:\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\lib\Qt5Gui.lib C:\Qt\Qt5.2.0\5.2.0\msvc2010_opengl\lib\Qt5Core.lib 
  </code></pre>
  
  <p>These were the files autogenerated by Qt Creator.  Do I need to edit these lines? Can qmake read multiple LIBPATH declarations in the same block like that? </p>