MinGW gcc missing zlib1.dll

14,653

Solution 1

You get it directly from zlib website. There's a link pointing to Windows prebuilt version: http://www.winimage.com/zLibDll.

Solution 2

When you install mingw C++ tools, you also need to install mingw32-base. Here's a pic: enter image description here

Share:
14,653

Related videos on Youtube

user3621590
Author by

user3621590

please delete me

Updated on September 18, 2022

Comments

  • user3621590
    user3621590 over 1 year

    Whenever I try to compile a C file using MinGW's gcc, it gives the error that zlib.dll is missing. Is there any reliable way to get zlib.dll or to fix this error?

  • op1ekun
    op1ekun over 9 years
    Where do I place them?
  • denisvm
    denisvm over 9 years
    @op1ekun if only your app will use this library, you should put it inside the application's directory. Read more on msdn.microsoft.com/en-us/library/7d83bc18.aspx
  • dragn
    dragn over 8 years
    Yes, either that or just install zlib package