Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GTK in CodeBlocks no deflateSetHeader in zlib1.dll

I'm attempting to get a working GTK project in Code::Blocks on a Windows machine. I followed the instructions found under the "Simple Way" at this link

When I open up a GTK project and attempt to compile and run, I get the following error message:

The procedure entry point deflateSetHeader could not be located in the dynamic 
link library zlib1.dll.

Is there a more recent version of zlib1.dll that I need to replace the current one with? If so, does there exist a link? Or perhaps if anyone else has had a similar error, any feedback would be very much obliged.

Thanks.

like image 761
Vincent Russo Avatar asked Jan 28 '12 20:01

Vincent Russo


2 Answers

I had a similar problem trying to install StarDict-editor in my Windows XP computer.

I got the installer stardict-editor-3.0.1.rar from http://code.google.com/p/stardictproject/downloads/list and tried to install StarDict-editor without GTK but was impossible because a lot of messages reporting .dll files missing.

Finally the solution was:

  1. Install first the GTK+ for Windows Runtime Environment from http://sourceforge.net/projects/gtk-win/?abmode=1 In the installation options mark an option saying something like "install dll files..."
  2. Try again to install stardict-editor.exe
  3. Then I got the mentioned error message: "The procedure entry point deflateSetHeader could not be located in the dynamic link library zlib1.dll"
  4. I looked in my computer for zlib1.dll files and find several versions.
  5. Choose from the list of files, the more recently created zlib1.dll. Copy this file and paste the copy in the path: c:\Windows\system32 (this is for Windows XP)
  6. Now, try again the installation stardict-editor.exe
  7. StarDict-editor installed and working ok, it seems.
like image 154
roberto Avatar answered Oct 19 '22 11:10

roberto


I had the same problem. Check the output window to find out where it's loading zlib1.dll from. For me, the log read "Loaded 'C:\Windows\SysWOW64\zlib1.dll'".

I couldn't get it to load the right dll by changing my path and had to replace the dll in SysWOW64 with the newer version in order for my project to compile.

Hope that helps!

like image 39
Ryan Bahneman Avatar answered Oct 19 '22 09:10

Ryan Bahneman