From: "Jeffrey Harper" Newsgroups: comp.os.msdos.djgpp References: <77gb55$ip4$1 AT news DOT global DOT co DOT za> Subject: Re: Wierd problem Lines: 34 X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: <0BOm2.392$Mq2.223@ralph.vnet.net> Date: Tue, 12 Jan 1999 15:48:20 -0500 NNTP-Posting-Host: 166.82.198.117 X-Trace: ralph.vnet.net 916174268 166.82.198.117 (Tue, 12 Jan 1999 15:51:08 EDT) NNTP-Posting-Date: Tue, 12 Jan 1999 15:51:08 EDT Organization: Vnet Internet Access To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Jason Filby wrote in message <77gb55$ip4$1 AT news DOT global DOT co DOT za>... >Hi all, > >When compiling this litte bit of code, I got this error: > >typedef >void <------ parse error before `PVOID' >(*PTEST) ( > ULONG a; >) > >The wierd thing is that if I replace the void (the line that has the error) >with something else, like int, it works fine! Any ideas? > >Thanks > >- Jason Filby > > Remove the the semicolon from "ULONG a;" and move it to the end of the next line. typedef int // <------ parse error before `PVOID' (*PTEST) ( ULONG a );