| delorie.com/archives/browse.cgi | search |
| 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:53:11 +0200 |
| Organization: | EuroNet Internet |
| Lines: | 26 |
| Sender: | spek AT d21006 DOT dtk DOT chello DOT nl |
| Message-ID: | <8h29ce$jk3$1@beast.euro.net> |
| References: | <8h0f4e$opc$1 AT beast DOT euro DOT net> <3933d3f2 DOT 3249926 AT news DOT freeserve DOT net> |
| NNTP-Posting-Host: | d21006.dtk.chello.nl |
| X-Trace: | beast.euro.net 959752398 20099 213.46.21.6 (31 May 2000 05:53:18 GMT) |
| X-Complaints-To: | abuse AT euronet DOT nl |
| NNTP-Posting-Date: | 31 May 2000 05:53:18 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 |
"Steamer" <dontmailme AT iname DOT com> schreef in bericht
news:3933d3f2 DOT 3249926 AT news DOT freeserve DOT net...
> 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));
>
> It looks as if OF is not defined, or not correctly defined. Are you
> #including some other file before zlib.h that might #define OF?
> Can you post a minimal example of some code that causes this problem,
> together with a full list of the errors that gcc reports?
Sorry, I found the error:
#define ZEXPORT WINAPI
#include "zlib.h"
>
> I'm using zlib in something I'm currently working on, and I haven't
> had any problems with it.
>
> S.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |