The error message usually names the variable that has incomplete type. So show the full error message.
I think that the problem is that the compiler does not see the full definition of CXMLString. You included only the declaration
but the compiler requires the definition.
Or it looks like the declaration
hides the previous declaration of the same class. It is possible if they are in different scopes.
Or some compilers distinguish class and struct keywords. Check what keyword the definition of CXMLString uses.
Last edited on
yeah sorry! it was in a different namespace.. included that and its working fine..