From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Error: "the procedure entry point deflatesetheader could not be located in dynamic link library zlib1.dll" Date: Sat, 22 Aug 2015 11:45:10 +0200 Organization: cbb software GmbH Message-ID: References: <1329e2a7-2d29-4eda-ad53-92bcbb13bac7@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: se3iTW6QYgtZe5ofWsxzmg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:27572 Date: 2015-08-22T11:45:10+02:00 List-Id: On Sat, 22 Aug 2015 01:59:21 -0700 (PDT), Trish Cayetano wrote: > When I ran the exe file, it prompted me with error "the procedure entry > point deflatesetheader could not be located in dynamic link library > zlib1.dll" > > The zlib1.dll file is located in the following: > > C:\GNAT\2015\bin\zlib1.dll > C:\gtkada\bin\zlib1.dll > > And the values in the environment system variable path are: > > C:\gtkada\bin;C:\gtkada\lib\gtkada;C:\GNAT\2015\bin > > but I still encounter the errors... How do I fix the error? 1. The name is deflateSetHeader (case sensitive) 2. Do you really use it in your code? 3. You can take zlib1.dll from other distributions, e.g. from GIMP. Overwrite the original in C:\GtkAda\bin and see what happens. 4. There is libz.a in C:\GtkAda\lib. You could link statically to it. P.S. Use dumpbin.exe /exports foo.dll to see the symbols exported from a DLL. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de