title: Mingw gives my a libwinpthread-1.dll was not found error when compiling code
body: <p>I just downloaded and installed Mingw. I also setup the system environment variables for <code>C:\MinGW\bin</code> and <code>C:\MinGW\msys\1.0\bin</code>.  I wanted to test to see if I had installed it correctly (it seemed to be since running <code>gcc --version</code> worked), so I wrote hellow world in c and tried to compile with <code>gcc main.c -o hello_world.exe</code>.  However I got the error:</p>
  <p>&quot;The code execution cannot proceed because libewinpthread-1.dll&quot; was not found. Reinstalling the program may fix this problem.&quot;</p>
  <p>I have tired reinstalling it and restarting my computer.  I have also tried to see if this problem has occurred to others, and while there are a few places it is mentioned, I can't seem to find a solution mentioned.  I have thought about trying to download the dll separately, but if I remember correctly, downloading dlls is a big no no.</p>
  <p>Awhile ago I installed mingw though chocolatey and it seemed to be working.  I have deleted that download from my computer and removed the paths, since I wanted to try to install it the normal way.  Could this be part of the error?</p>
  <p>Any ideas what the issue could be?  Thanks!</p>