The below code is a psudeo code. Since i can t share my code becasue its a confidential code.
The Code is divided into two folders :
First Folder contains : We call that folder as "Folder 1"
A.h
1 2 3 4
Class A{
Public :
Static A* getInstance();
}
A.cpp contains nothing because its a non-concrete
B.h
1 2 3 4 5 6 7
#include A.h
class B : public A
{
// some code
};
B.cpp
1 2 3 4 5 6
A* A::getInstance(){
//some code.
Return *A
}
In other folder : We call that folder as "Folder 2"
D.h
1 2 3 4 5 6 7 8
#include B.h
class D
{
public :
void Initialize();
}
D.cpp
1 2 3 4 5 6 7 8
#include D.h
D::Initialize(){
A* pter = A::getInstance() // error: 'getInstance' is not a member of 'A'
}
I am trying to build the code on CentOs.
As per my requirement I will build the Folder 2 first and then Folder 1...