I had the similar issue what I found was that my header files contains cyclic reference. For instance I have a base class like below:
#include "OtherClass.h"
class BaseClass {
protected:
OtherClass* otherClass;
}
In OtherClass.h, I was referencing "BaseClass.h" file that was causing the issue.
Hope that might help you.
Thanks,
Muhammad Masood
[blog link removed]