Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!scherzo!allegra!princeton!udel!gatech!bloom-beacon!husc6!cmcl2!brl-adm!adm!Alan_T._Cote.OsbuSouth@Xerox.COM From: Alan_T._Cote.OsbuSouth@Xerox.COM Newsgroups: comp.lang.c Subject: Re: struct a <---> struct b Message-ID: <11774@brl-adm.ARPA> Date: 11 Feb 88 20:23:41 GMT Sender: news@brl-adm.ARPA Lines: 22 Posted: Thu Feb 11 15:23:41 1988 Finally -- one I can answer!! >What is the best way to declare three different structures, each containing a pointer >to the other two? I keep running into a forward referencing error. Try declaring all three as externals ahead of time. Try the following: struct s { struct s *p0; struct s *p1; }; extern struct s a; extern struct s b; extern struct s c; struct s a = { &b, &c }; struct s b = { &a, &c }; struct s c = { &a, &b }; How's that?!?