delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/31/10:30:25

From: "Olaf van der Spek" <Olaf AT XCC DOT TMFWeb DOT NL>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Using zlib
Date: Wed, 31 May 2000 07:46:06 +0200
Organization: EuroNet Internet
Lines: 39
Sender: spek AT d21006 DOT dtk DOT chello DOT nl
Message-ID: <8h28v4$ium$1@beast.euro.net>
References: <8h0f4e$opc$1 AT beast DOT euro DOT net> <39341499 DOT 3D73F2F6 AT bigfoot DOT com>
NNTP-Posting-Host: d21006.dtk.chello.nl
X-Trace: beast.euro.net 959751972 19414 213.46.21.6 (31 May 2000 05:46:12 GMT)
X-Complaints-To: abuse AT euronet DOT nl
NNTP-Posting-Date: 31 May 2000 05:46:12 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Richard Dawe" <richdawe AT bigfoot DOT com> schreef in bericht
news:39341499 DOT 3D73F2F6 AT bigfoot 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

I think that's not the problem, as it should be automatically included.

> 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.

I compiled the lib myself, but make install gave some errors.
I copied the files zconf.h, zlib.h and libz.a to the djgpp directories.

>
> Hope that helps, bye,
>
> --
> Richard Dawe
> richdawe AT bigfoot DOT com ICQ 47595498 http://www.bigfoot.com/~richdawe/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019