title: Can't Compile C++ Code on NetBeans 7.0
body: <p>I just installed NetBeans 7.0 with C++ package. It asked for C++ compiler - I installed MinGW. I added it to NetBeans (so it recognize it). I think that it's all correct...</p>
  
  <p>I wrote very simple C++ application in <em>main.cpp</em> and tried to compile it...</p>
  
  <pre><code>#include &lt;cstdlib&gt;
  #include &lt;iostream&gt;
  
  
  int main( int argc, char** argv ) {
  
      std::cout &lt;&lt; "Hello, world!";
  
  
      return 0;
  
  }
  </code></pre>
  
  <p>It complains about "Make Command" (under Tools -> Options -> C/C++ -> Build Tools). I tried to fix it and type <em>C:\MinGW\msys\1.0\bin\make.exe</em> in there. I tried to compile it again! Here's the error message...</p>
  
  <blockquote>
  <pre><code>"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
  make[1]: Entering directory `/c/Users/admin/Documents/C++/helloWorld'
  "/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/helloworld.exe
  make[2]: Entering directory `/c/Users/admin/Documents/C++/helloWorld'
  make[2]: mkdir: Command not found
  mkdir -p build/Debug/MinGW-Windows
  make[2]: *** [build/Debug/MinGW-Windows/main.o] Error 127
  make[1]: *** [.build-conf] Error 2
  make: *** [.build-impl] Error 2
  make[2]: Leaving directory `/c/Users/admin/Documents/C++/helloWorld'
  make[1]: Leaving directory `/c/Users/admin/Documents/C++/helloWorld'
  
  BUILD FAILED (exit value 2, total time: 2s)
  </code></pre>
  </blockquote>
  
  <p>How to fix it and configure NetBeans (with C++ package) correctly?</p>