That error generally means the class is not fully defined, which means you need to include the correct header before you use it.

-andy.f