(Compiler Error) Pointer to incomplete class type not allowed

I have a place in my code where I'm using the syntax:

someClassPtr->someClassMethod();

someClassPtr is initialized with dynamic memory, and the method someClassMethod() is defined in the .h file and .cpp files correctly.  

I get the error "Pointer to incomplete class type is not allowed.    error #393"

Is there any common reason for this error -- any hints about where I may have made my typo? (I can't really post the code given the work nature, but I was hoping that someone could suggest a reason this error appears in code in general.)

Thanks for the help in advance!

-w00te
LVL 12
w00teAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

evilrixSenior Software Engineer (Avast)Commented:
it means the compiler hasn't seen the full definition of someClass at the point you try and use a member. Have you forward declared in the header and forgotten to include the header file for someclass in the .cpp file maybe?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
w00teAuthor Commented:
Good call, thank you evilrix :)
0
w00teAuthor Commented:
Worked perfectly.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.