title: How can I compile a C program in Sublime Text 3?
body: <p>I've allways used Code:Blocks for programing in C language, but last week I found out about Sublime Text and I loved it, I tried to compile a C program and, despite that I already tried all I could find to do it, I can't get my program to work, I get this message:</p>
  
  <blockquote>
    <p>gcc: error: &amp;&amp;: No such file or directory</p>
  </blockquote>
  
  <p>I already:<br>
   1. Checked and downloaded MinGW<br>
   2. Changed the path to the one where MinGW was instaled<br>
   3. Made a new build system
  Here is the build system a found and tried:</p>
  
  <pre><code>{    
  "cmd" :["gcc", "$file_name", "-o", "${file_base_name}.exe", "&amp;&amp;", "${file_base_name}.exe"],    
  "selector" : "source.c",    
  "shell" : true,    
  "working_dir" : "$file_path"    
  }
  </code></pre>
  
  <p>Despite all of this, Sublime text can't compile, my guess is that there is something wrong in the configuration of Sublime Text, since when I try to compile it shows me the next:</p>
  
  <blockquote>
    <p>WinError 2] El sistema no puede encontrar el archivo especificado<br>
    [cmd: ['gcc', 'punteros.c', '-o', 'punteros.exe', '&amp;&amp;', 'punteros.exe']]<br>
    [dir: C:\Users\ipeta\Documents\Termodinámica]<br>
    [path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\MATLAB\R2016a\runtime\win64;C:\Program Files\MATLAB\R2016a\bin;C:\Program Files\MATLAB\R2016a\polyspace\bin]<br>
    [Finished]</p>
  </blockquote>
  
  <p>As you can see the path it shows is not the same I introduced in the system of my computer, wich was:</p>
  
  <blockquote>
    <p>C:\MinGW\bin</p>
  </blockquote>
  
  <p>I'd apreciate if someone could help me.<br>
  Pd. Sorry for my bad english, it isn't my natural language</p>