Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: quiznoserf on January 24, 2015, 01:11:16 am

Title: gtk+-3.0 project runs within CB in Widows 7, but not outside of CB.
Post by: quiznoserf on January 24, 2015, 01:11:16 am
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?
Title: Re: gtk+-3.0 project runs within CB in Widows 7, but not outside of CB.
Post by: stahta01 on January 24, 2015, 02:58:22 am
Use a dll/exe tool like http://www.dependencywalker.com/ (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.
Title: Re: gtk+-3.0 project runs within CB in Widows 7, but not outside of CB.
Post by: quiznoserf on January 25, 2015, 05:28:15 am
Thanks stahta01!  I downloaded dependencywalker and was able to quickly find the problem.