title: Include <iostream> => Successfull Build, but no .exe (Netbeans)
body: <p>I'm trying to compile this C++ code, but no luck. Using MinGW and Netbeans 7.4. The code doesn't make sense because I erased everything down to a minimum for failure analysis. The problem seems to be the line "#include ". When it's there, the project builds, but no .exe is created. If it's not there, the project builds and runs just fine.</p>
  
  <p>Any ideas ? Btw, I read those other 'can't include 
  
  <p>main.cpp</p>
  
  <pre><code>    #include "xmessage.h"
  
      using namespace std;
  
      int main() {
          xmessage();
          return 0;
      }
  </code></pre>
  
  <p>xmessage.cpp</p>
  
  <pre><code>    #include &lt;iostream&gt;  // What's wrooong with you, &lt;iostream&gt; !?!?
  
      using namespace std;
  
      void xmessage ()  {
          int i = 1;
      }
  </code></pre>
  
  <p>xmessage.h</p>
  
  <pre><code>    #ifndef XMESSAGE_H
      #define XMESSAGE_H
  
      void xmessage ();
  
      #endif  /* XMESSAGE_H */
  </code></pre>
  
  <p>Also:</p>
  
  <p>The files are .cpp, that's not it.</p>
  
  <p>And if I remove the iostream file from the include folder 
  C:\MinGW\lib\gcc\mingw32\4.8.1\include\c++
  the build fails. So that's definitely the file that is being used by the compiler.</p>
  
  <p>Netbeans output:</p>
  
  <pre><code>"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
  make.exe[1]: Entering directory `/c/Users/admin/Documents/NetBeansProjects   
  /project125(HeaderFileMacros) - WIP'
  "/C/MinGW/msys/1.0/bin/make.exe"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows 
  /project125_headerfilemacros__-_wip.exe
  make.exe[2]: Entering directory `/c/Users/admin/Documents/NetBeansProjects    
  /project125(HeaderFileMacros) - WIP'
  mkdir -p dist/Debug/MinGW-Windows
  g++     -o dist/Debug/MinGW-Windows/project125_headerfilemacros__-_wip build/Debug/MinGW-Windows
  /main.o build/Debug/MinGW-Windows/xmessage.o 
  make.exe[2]: Leaving directory `/c/Users/admin/Documents/NetBeansProjects  
  /project125(HeaderFileMacros) - WIP'
  make.exe[1]: Leaving directory `/c/Users/admin/Documents/NetBeansProjects  
  /project125(HeaderFileMacros) - WIP'
  </code></pre>
  
  <p>BUILD SUCCESSFUL (total time: 4s)</p>