I get this compiler error
error: 'RawLog' does not name a type
Here is the relevant code:
//DataAudit.h
Usually the front declaration resolves this error. This answer indicates that including a circular header may cause this. But doesn't the #ifndef and #define expressions ban the inclusion of a circular header?
Is there any other reason I can see this error?
What are some possibilities of the approach that I could use to further determine the nature of this error?
Update: This is pretty weird. I have a Globals.h file, and if I define a new enum in Globals.h , an error appears. Then, if I comment on enum , the error will disappear. Does it make me think that a circular dependency has existed for some time, and adding enum somehow reorders compilation units, thereby exposing a dependency that was not there before?
source share