title: Qt compilation fails on Windows
body: <p>I have a Qt app (CWB) that I'm maintaining on Linux and Windows. It compiles fine on Linux, and <em>was</em> compiling fine on Windows until the last few days. Now it fails while trying to compile the project's resource file. Here's the output of <code>mingw32-make -f Makefile.Release</code> (from Cygwin so that I can see all of the output - the <strong>Compile Output</strong> pane doesn't show the output from g++ or cc1plus):</p>
  
  <pre><code>g++.exe: releaseqrc_CWB.cpp: No such file or directory
  g++.exe: no input files
  mingw32-make: *** [release/qrc_CWB.o] Error 1
  </code></pre>
  
  <p>Note the absence of a separator between the directory and filename. The file it's asking for is there:</p>
  
  <pre><code>-rw-r--r-- 1 scott None 1261426 Oct 24 12:25 release/qrc_CWB.cpp
  </code></pre>
  
  <p>Here's the full output of the Compile Output pane in Qt Creator:</p>
  
  <pre><code>C:/QtSDK/mingw/bin/mingw32-make -f Makefile.Release
  mingw32-make[1]: Entering directory `G:/Expert/src/app/CWB-build-mingw'
  g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtCore" -I"c:\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtNetwork" -I"c:\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtGui" -I"c:\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtSql" -I"c:\QtSDK\Desktop\Qt\4.7.3\mingw\include" -I"..\..\include" -I"c:\Program Files\Expat 2.0.1\Source\lib" -I"c:\qwt-5.2.1\src" -I"c:\sqlite-amalgamation-3070701" -I"c:\QtSDK\QtSources\4.7.3\src\3rdparty\sqlite" -I"c:\Python27\include" -I"c:\QtSDK\Desktop\Qt\4.7.3\mingw\include\ActiveQt" -I"release" -I"." -I"..\CWB" -I"." -I"c:\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++" -o release\qrc_CWB.o release\qrc_CWB.cpp
  mingw32-make[1]: Leaving directory `G:/Expert/src/app/CWB-build-mingw'
  mingw32-make[1]: *** [release/qrc_CWB.o] Error 1
  mingw32-make: *** [release] Error 2
  The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
  Error while building project CWB (target: Desktop)
  When executing build step 'Make'
  </code></pre>
  
  <p>I've tried adding double quotes around the filename in the Makefile:</p>
  
  <pre><code>release/qrc_CWB.o: release/qrc_CWB.cpp 
      $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "release\qrc_CWB.o" "release\qrc_CWB.cpp"
  </code></pre>
  
  <p>Here's the result:</p>
  
  <pre><code>cc1plus.exe: error: release\qrc_CWB.cpp: Invalid argument
  mingw32-make: *** [release/qrc_CWB.o] Error 1
  </code></pre>
  
  <p>I also tried replacing the backslashes with forward slashes in <code>Makefile.Release</code>, but that didn't work either. Everything else compiles fine, and this <em>was</em> was compiling fine until this week. Looking at the installation log, apparently it did some sort of update last Friday that I don't remember being aware of. I tried doing a full update, which completed successfully, on the theory that whatever update happened Friday was only partially completed, and I'm obtaining the exact same results. It's <em>only</em> the qrc file that's failing to compile. Everything else compiles fine. I'm stumped. Any ideas?</p>
  
  <p><b>Update</b> (Tue Oct 25 11:03:51 EDT 2011):</p>
  
  <p>I've boiled this down to the bare essential:</p>
  
  <pre><code>$ gcc -c release/qrc_CWB.cpp
  cc1plus.exe: error: release/qrc_CWB.cpp: Invalid argument
  </code></pre>
  
  <p>Same deal for other variants of the file name, including <code>"release\qrc_CWB.cpp"</code> and <code>release\qrc_CWB.cpp</code>. Likewise the same result for <code>g++</code> instead of <code>gcc</code>. </p>