title: Cannot Compile "Hello World" in NetBeans IDE 7.3 with MinGW C++
body: <p>I'm trying to make a simple "Hello World!" program in NetBeans IDE 7.3 with MinGW as my C++ compiler.  </p>
  
  <p>I'm getting build failures and I'm at a loss as to understanding why. </p>
  
  <p>This is my compiler setup:</p>
  
  <ul>
  <li>Family: <strong>MinGW</strong></li>
  <li>Base Directory: <strong>C:\MinGW</strong></li>
  <li>C Compiler: <strong>C:\MinGW\bin\gcc.exe</strong></li>
  <li>C++ Compiler: <strong>C:\MinGW\bin\g++.exe</strong></li>
  <li>Assembler: <strong>C:\MinGW\bin\as.exe</strong></li>
  <li>Make Command: <strong>C:\MinGW\msys\1.0\bin\make.exe</strong></li>
  <li>Debugger Command: <strong>C:\MinGW\bin\gdb.exe</strong></li>
  </ul>
  
  <p>I've made sure to that my environment PATH directs to <strong>C:\MinGW\bin</strong> and <strong>C:\MinGW\msys\1.0\bin</strong>.</p>
  
  <p>My code is:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
      cout &lt;&lt; "Hello World!" &lt;&lt; endl;
      return 0;
  }
  </code></pre>
  
  <p>After trying to build the project, I recieve this message from the NetBeans debug output:</p>
  
  <pre><code>"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
  make[1]: Entering directory `/c/NetBeansProjects/HelloWorld'
  "/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/helloworld.exe
  make[2]: Entering directory `/c/NetBeansProjects/HelloWorld'
  mkdir -p build/Debug/MinGW-Windows
  rm -f build/Debug/MinGW-Windows/main.o.d
  g++    -c -g -MMD -MP -MF build/Debug/MinGW-Windows/main.o.d -o build/Debug/MinGW-Windows/main.o main.cpp
  make[2]: g++: Command not found
  make[2]: *** [build/Debug/MinGW-Windows/main.o] Error 127
  make[2]: Leaving directory `/c/NetBeansProjects/HelloWorld'
  make[1]: *** [.build-conf] Error 2
  make[1]: Leaving directory `/c/NetBeansProjects/HelloWorld'
  make: *** [.build-impl] Error 2
  
  
  BUILD FAILED (exit value 2, total time: 1s)
  </code></pre>
  
  <p>I've search various Q&amp;A, but I seem to be doing everything correctly. </p>