in main.cpp i have pointer to a class object as global
A *a = 0;
and i am passing it to a function written in another file:
fu