A.h file
class A{ public: static int* func (int &b); }
A.cpp
int* A::func(int &b){ //some definition her
The code looks right.
The first thing to check is that your build environment compiled and linked in A.cpp.