title: Why do I get the error "The program can't start because msys-2.0.dll is missing from your computer"? Is there a fix?
body: <p>I have written a long program in C, so I am not writing the whole code.
  These are the libraries I a using (in case it matters)</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  #include &lt;windows.h&gt;
  #include &lt;time.h&gt;
  #include &lt;sys/types.h&gt;
  #include &lt;dirent.h&gt;
  #include "xlsxwriter.h"
  </code></pre>
  
  <p>The program runs perfectly on my Windows computer, and in my work computer as well where I have the same programs.</p>
  
  <p>But when I am running in on a colleagues computer this error appears:</p>
  
  <pre><code>System error:
  The program can't start because msys-2.0.dll is missing from your computer.
  Try reinstalling the program to fix this problem.
  </code></pre>
  
  <p>Is there some way to make it work without installing the whole visual studio?</p>
  
  <p>Rookie C programmer here!:)</p>
  
  <p>Edit: I am compiling like this:</p>
  
  <pre><code>gcc Example.c -o Example -static-libgcc -std=c99 -lxlsxwriter -lz
  </code></pre>