> A missing semicolon at the end of a forward declaration can cause that
error:
class A
class B {};
Ali
P.S. I found the answer by Google'ing for it. You could too :)
I had exactly the same problem yesterday, and it baffled me for quite a
while, seen as I had pretty much copied the code from a tutorial I was
working through, I couldn't understand what was wrong, until I looked at
the example code very carefully, and then looked at my code very
carefully, and saw that I was missing a semi-colon. After 20 mins of
utter confusion I reckon I'm much less likely to miss it off again.
Tom