C question about structs
C question about structs
- Subject: C question about structs
- From: Alex Golovinsky <email@hidden>
- Date: Mon, 23 Jul 2001 13:31:59 -0400
Hi, this is a straight C question. I have, say, struct A which includes
struct B and struct B, which has as a member struct A. How do I declare
this without getting undefined types? I was under the impression that I
could do the following:
typedef struct B;
typedef struct
{
B *myb;
}A;
typedef struct
{
A *mya;
}B;
however, project builder does not like this.
thanks in advance,
Alex