Newsgroups: comp.os.msdos.djgpp From: Elliott Oti Subject: Re: recursive structures? Sender: usenet AT phys DOT uu DOT nl (News system Tijgertje) Message-ID: In-Reply-To: <364DD66B.3CB7DAD1@nospam.student.tue.nl> Date: Sat, 14 Nov 1998 20:36:38 GMT X-Nntp-Posting-Host: ruunat.phys.uu.nl Content-Type: TEXT/PLAIN; charset=US-ASCII References: <364DD66B DOT 3CB7DAD1 AT nospam DOT student DOT tue DOT nl> Mime-Version: 1.0 Organization: Physics and Astronomy, University of Utrecht, The Netherlands Lines: 30 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sat, 14 Nov 1998, Wouter Bijlsma wrote: > Hi, > > How can I define a recursive structure without getting parse errors or > 'incomplete data type' errors? > > typedef struct { > unsigned Tag; > Plane *RootPlane; > BSPNode *FrontNode,BackNode; > Polygon *Polygons; > } BSPNode; > > This does *not* work.... typedef struct _BSPNode { unsigned Tag; Plane *RootPlane; _BSPNode *FrontNode, *BackNode; Polygon *Polygons; } BSPNode; Cheers, Elliott Oti http://www.fys.ruu.nl/~oti Eh? Where's my sig?