So, the project I'm working on is a few thousands lines, so I'm going to use a very bare-bones example to illustrate the problem I'm having.
In my header for the DLCLRep class, I have a private "first" and a function to get at "first".
1 2 3 4 5 6 7 8 9 10 11
class DLCLNode; //Forward declaration. This class is defined elsewhere
class DLCLRep
{
private:
DLCLNode* first;
public:
DLCLNode* getFirst();
int Count();
}
The problem arises when I try to use getFirst within another function, Count().
1 2 3 4 5 6 7 8 9 10 11 12
DLCLNode* DLCLRep::getFirst()
{
return first;
}
...
int DLCLRep::Count()
{
int counter = 0;
DLCLNode* current = getFirst();
}
I keep getting hit with "error C3861: 'getFirst': identifier not found"
You should post a code example that actually exhibits the problem you mentioned.
Also, you forgot a semicolon at the end of the DLCLRep class declaration.