title: How to build and run c++ programs in Sublime Text 2, Windows 8?
body: <p>I installed Codeblocks with mingw, chose default compiler, and could build and run a simple hello program without errors.</p>
  
  <p>I installed Sublime Text 2, copy pasted the same hello world program:</p>
  
  <pre><code>// my first program in C++
  #include &lt;iostream&gt;
  
  using namespace std;
  
  int main ()
  {
      cout &lt;&lt; "Hello World!";
      return 0;
  }
  </code></pre>
  
  <p>Upon building, I get the error message:</p>
  
  <pre><code>[Error 2] The system cannot find the file specified
  [cmd:  [u'bash', u'-c', u"g++ '' -o '/' &amp;&amp; '/'"]]
  [dir:  C:\Windows\system32]
  [path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\]
  [Finished]
  </code></pre>
  
  <p>What do I need to do in order to build and run a simple program using Sublime Text 2?</p>