From: "Edmund Horner" Newsgroups: comp.os.msdos.djgpp References: <39f05c8e DOT 3570804 AT netnews DOT att DOT net> Subject: Re: Typedefs for Dummies Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Organization: Paradise Net Message-ID: <972055161.720391@shelley.paradise.net.nz> Cache-Post-Path: shelley.paradise.net.nz!unknown AT 203-96-146-172 DOT tnt2 DOT paradise DOT net DOT nz X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Date: Sat, 21 Oct 2000 04:20:16 +1300 NNTP-Posting-Host: 203.96.152.26 X-Complaints-To: newsadmin AT xtra DOT co DOT nz X-Trace: news.xtra.co.nz 972055162 203.96.152.26 (Sat, 21 Oct 2000 04:19:22 NZDT) NNTP-Posting-Date: Sat, 21 Oct 2000 04:19:22 NZDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > typedef unsigned char BYTE; > typedef BYTE far *BYTEP; > typedef BYTEP PBYTE; These mean, respectively: create a new type called BYTE, equivilent to an unsigned char. c.a.n.t.c. BYTEP, e.q.t.a. BYTE *. c.a.n.t.c. PBYTE, e.q.t.a. BTYEP. The bit gcc doesn't like is the word "far". According to the faq, the solution is to add the following line _before_ the typedefs: #define far I hope this helps your C module to compile. Edmund.