delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/14/15:30:21

Message-Id: <199811142005.UAA12058@remus.clara.net>
From: "Arthur" <arfa AT clara DOT net>
To: <djgpp AT delorie DOT com>, <w DOT j DOT bijlsma AT student DOT tue DOT nl>
Subject: RE: recursive structures?
Date: Sat, 14 Nov 1998 20:04:41 -0000
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
In-Reply-To: <364DD66B.3CB7DAD1@nospam.student.tue.nl>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Importance: Normal
Reply-To: djgpp AT delorie DOT com

> How can I define a recursive structure without getting parse errors or
> 'incomplete data type' errors?
>
> typedef struct {
try "typedef struct BSPNode {"

>                         unsigned     Tag;
unsigned what? This is probably your problem. Try "unsigned int Tag;"
>                         Plane        *RootPlane;
>                         BSPNode  *FrontNode,BackNode;
try "BSPNode *FrontNode, *BackNode"
>                         Polygon     *Polygons;
>                     }  BSPNode;
>
> This does *not* work....

HTH

James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019