I have 3 header files:
misc.h
MyForm.h
Registration.h
In misc.h file I put
#ifndef MISC_H
#define MISC_H
#endif
You need to put individual include guards in every header, notably in MyForm.h:
#ifndef MYFORM_H
#define MYFORM_H
#include "misc.h"
#include "Registration.h"
// etc...
#endif /*MYFORM_H*/
and in Registration.h:
#ifndef REGISTRATION_H
#define REGISTRATION_H
// actual code
// etc...
#endif /*REGISTRATION_H*/