ciao a tutti,
ho un piccolo problema con le struct messi sugli header.
ho fatto due struct str1 e str2 in due file, str1.h e str2.h.
str1.h:
struct str1{
int a,b,c,d;
};
str2.h:
#include "str1.h"
struct str2{
int a,b;
struct str1 c;
};
perché quando faccio questa cosa, mi dice che nella struct2, la variabile c contiene un tipo incompleto, riferendosi alla str1?
a me sembra completo e definito altrove...
dove sto sbagliando?