News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

gtk+-3.0 project runs within CB in Widows 7, but not outside of CB.

Started by quiznoserf, January 24, 2015, 01:11:16 AM

Previous topic - Next topic

quiznoserf

I modified the GTK+ Wizard to work with gtk+-3.0, got a simple program to compile and run within CB, but when I tried to run the release version outside of Code : Blocks, I get the following error message:

<ProgramName>.exe - Entry Point Not Found
The procedure entry point gzdirect could not be located in the dynamic link library zlib1.dll

Other sites have suggested that there may be multiple zlib1.dll files in my path, but I only have the one in the mingw path.
Any suggestions?

stahta01

Use a dll/exe tool like http://www.dependencywalker.com/

Then add the needed DLLs to the folder holding the exe you are trying to run.

Note, the missing DLLs are likely in either the Compiler Bin folder or the linker search paths; both of these path are added by CB when running inside of CB.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

quiznoserf

Thanks stahta01!  I downloaded dependencywalker and was able to quickly find the problem.