title: Sublime Text 2 and MinGW
body: <p>Good day!</p>
  
  <p>Can anyone share their experience how to attach MinGW-compiler to Sublime?</p>
  
  <p>I found a config in the internet, but when I run compiled program popping bugs with missing files from "../MinGW/bin/".</p>
  
  <p>Config:</p>
  
  <pre><code>{
     "cmd": ["mingw32-g++.exe", "-o", "$file_base_name", "$file_name"],
     "path": "c:\\Program Files\\MinGW\\bin\\"
  }
  </code></pre>
  
  <p>Thanks!</p>
  
  <h1><strong>UPD</strong></h1>
  
  <p>I found answer for my question! I had to add one parameter in <code>cmd</code>. It's <code>"-static"</code>. </p>
  
  <p>So, it's my <code>MinGW.sublime-build</code>, which works fine:</p>
  
  <pre><code>{
      "path": "c:\\Program Files\\MinGW\\bin\\",
      "cmd": ["mingw32-g++.exe", "-static", "-o", "$file_base_name", "$file"]
  }
  </code></pre>