Hello, after some time of struggling with this, I decided to ask here for help. What I need to do is to parse a value declared in in TestClassB.h to TestClassA.cpp using a getter function.
This is what I am stuck with on:
//TestClassB.h
class UTestClassA
{
private:
static int TestValue;
public:
static int GetTestValue();
};
//TestClassB
int UTestClassA::GetTestValue()
{
return TestValue;
}
Upon compilation its giving me an error: unresolved external symbol “private: static int UTestClassA::TestValue” (?TestValue@UTestClassA@@0HA)