All you should have to do is put is
#include name.h or whatever file contains the class name. You don't have to put name:: because its a global function.