Author Topic: gtk+-3.0 project runs within CB in Widows 7, but not outside of CB.  (Read 2231 times)

Offline quiznoserf

  • Single posting newcomer
  • *
  • Posts: 8
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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: gtk+-3.0 project runs within CB in Widows 7, but not outside of CB.
« Reply #1 on: January 24, 2015, 02:58:22 am »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline quiznoserf

  • Single posting newcomer
  • *
  • Posts: 8
Re: gtk+-3.0 project runs within CB in Widows 7, but not outside of CB.
« Reply #2 on: January 25, 2015, 05:28:15 am »
Thanks stahta01!  I downloaded dependencywalker and was able to quickly find the problem.