Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: visual C++ error messages  (Read 3375 times)

0 Members and 1 Guest are viewing this topic.

devil0150

    Topic Starter


    Beginner

    Thanked: 1
    visual C++ error messages
    « on: September 10, 2009, 01:56:21 PM »
    I get some error messages when I try to compile my code. I have two classes:

    class myClass
    {
    ...
    };

    class otherClass
    {
    ...
    myClass* somePtr;
    };

    This is one of the error messages I get when I try to compile.
    error C2143: missing ';' before '*'
    This error happens at the line where I declare the myClass pointer. And the declaration in the line before that DOES have a ';' in the end.
    Any help how I can fix this. (I have all my code in one file).