From: dontmailme AT iname DOT com (Steamer) Newsgroups: comp.os.msdos.djgpp Subject: Re: Using zlib Date: Tue, 30 May 2000 14:45:18 GMT Organization: always disorganized Lines: 16 Message-ID: <3933d3f2.3249926@news.freeserve.net> References: <8h0f4e$opc$1 AT beast DOT euro DOT net> NNTP-Posting-Host: modem-179.south-dakota.dialup.pol.co.uk X-Trace: news5.svr.pol.co.uk 959697925 6972 62.137.92.179 (30 May 2000 14:45:25 GMT) NNTP-Posting-Date: 30 May 2000 14:45:25 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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? I'm using zlib in something I'm currently working on, and I haven't had any problems with it. S.