////////////////////////////////////////////////
//A.h
Class A
{
public:
.
.
.
};
///////////////////////////////////////////////
//B.h
Class B
{
public
.
.
.
};
///////////////////////////////////////////////
B.cpp
A objectOfA;
void B::func()
{
//This function uses the object objectOfA
}
///////////////////////////////////////////////
main.cpp
A objectOfA;
int main( argc ... )
{
/// tries to use the objectOfA object
}
and my errors say
objectOfA uses undefined class'A'
and
left of '.memberFunctionOfA' must have class/struct/union