Mail Archives: djgpp/2000/05/31/10:30:25
"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 -