In a project I have 2 classes:
// mainw.h
#include "IFr.h"
...
class mainw
{
public:
static IFr ifr;
static CSize=100;
...
};
// IFr.h
#include "mainw.h"
...
class IFr
{
public float[mainw::CSize];
};
But I cannot compile this code, getting an error at the static IFr ifr;
line. Is this kind of cross-inclusion prohibited?