title: How To Add zlib1.dll to MinGW
body: <p>I am brand new to C++, although I know java pretty well, and I trying to set up compiler. I managed to download MinGW and modify my Path environmental variable. I am not at the point where when I go into the command prompt and type:</p>
  
  <pre><code>g++ --version
  </code></pre>
  
  <p>I get what Sam-s Teach Yourself C++ in 24 Hours says I should. But when I type:</p>
  
  <pre><code>g++ Hello.cpp -o Hello.exe
  </code></pre>
  
  <p>I get an error message that says "The program can't start because zlib1.dll is missing from your computer. Try reinstalling the program to fix this problem". I tried reinstalling multiple times, but nothing changed. Looking on <a href="https://superuser.com/questions/789397/mingw-gcc-missing-zlib1-dll">Stack Overflow</a>, I found that this is apparently a fairly common problem, and you have to add it to the file yourself.</p>
  
  <p>I downloaded the file, but I can find/figure out where I am suppose to put it. The folder I downloaded is called zlib128-dll and it contains (among other things) the file zlib1.dll, which I think is what I want. What do I do with what to make the error message go away?</p>
  
  <p>Other information:
  -Using Windows 8.1
  -I think I got the newest version of MinGW, since I just got it about 2 hours ago</p>