Member function may not be redeclared outside it's class!

Hi so i’m getting this error:


It may be that i’m missing a {} but i’ve checked for it like 20 mins and i can’t find them!
Here’s the rest of Grabber.cpp:

Can someone pls help me?

You’re missing a single } for the { on line 30. Also line 94 shouldn’t end in a semicolon which is why you’re getting “member function may not be redeclared outside its class”

class Thing
{
    void MemberFunction(); // declaring member function
};
// outside of the class
void Thing::MemberFunction(); // attempting to declare a member function outside the class.

Thx for the help!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms