| delorie.com/archives/browse.cgi | search |
| From: | Richard Dawe <richdawe AT bigfoot DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Using zlib |
| Date: | Tue, 30 May 2000 20:20:57 +0100 |
| Organization: | Customer of Planet Online |
| Lines: | 27 |
| Message-ID: | <39341499.3D73F2F6@bigfoot.com> |
| References: | <8h0f4e$opc$1 AT beast DOT euro DOT net> |
| NNTP-Posting-Host: | modem-157.chlorine.dialup.pol.co.uk |
| Mime-Version: | 1.0 |
| X-Trace: | newsg1.svr.pol.co.uk 959716353 5977 62.136.16.157 (30 May 2000 19:52:33 GMT) |
| NNTP-Posting-Date: | 30 May 2000 19:52:33 GMT |
| X-Complaints-To: | abuse AT theplanet DOT net |
| X-Mailer: | Mozilla 4.51 [en] (X11; I; Linux 2.2.14 i586) |
| X-Accept-Language: | de,fr |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hello.
Olaf van der Spek wrote:
> I got a problem using zlib. I compiled it to a .a file fine.
> When I try to compile a file that includes zlib.h, I get this error:
> Syntax error before '(' in for exampe this line:
> ZEXTERN const char * ZEXPORT zlibVersion OF((void));
I had a quick grep through the zlib headers:
zconf.h
zlib.h
OF is defined in zconf.h. Perhaps you haven't got zconf.h in the right
place. zlib.h includes it like so:
#include "zconf.h"
Have you installed zlib ("make install" or whatever)? I have tried
building it from sources myself, but the binary distribution works fine
for me.
Hope that helps, bye,
--
Richard Dawe
richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |