Sorry I could not find a better title :) There are two struct
s in a header file. These struct
s have members of type another struct
. Compiler complains that B is not declared when I declare B obj
. So what should I do?
structures.h
struct A
{
B obj; // B is not declared yet
};
struct B
{
A obj;
};