I have one header file defined as:
A.h
class A
{
void f1();
void f2();
};
A.cpp
void A::f1(){}
void A::f2(){}
Now I am defining other application class where I want to use this class functions, so I created,
B.cpp
#include A.h
int main()
{
A a1;
a1.f1(); //linker error
}
But When I am calling this function it gives linked error like unresolved external symbol.