delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/14/17:00:10

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: recursive structures?
Date: Sat, 14 Nov 1998 13:39:56 -0800
Organization: Alcyone Systems
Lines: 26
Message-ID: <364DF8AC.33CFF39B@alcyone.com>
References: <199811142005 DOT UAA12058 AT remus DOT clara DOT net>
NNTP-Posting-Host: charmaine.alcyone.com
Mime-Version: 1.0
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.34 i686)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Arthur wrote:

> > typedef struct {
> try "typedef struct BSPNode {"

That's part of the solution.

> >                         unsigned     Tag;
> unsigned what? This is probably your problem. Try "unsigned int Tag;"

No.  Variables always default to int.  unsigned is the same as unsigned
int.

> try "BSPNode *FrontNode, *BackNode"

This is another problem, but isn't the main one.  He needs to insert the
`struct' keyword before this statement, or rearrange the definition.

-- 
Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900
Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com
  San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/
          USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE
             \
            / The pure and simple truth is rarely pure and never simple.
           / Oscar Wilde

- Raw text -


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