The base class of the function "name" is declared as SHARED and "name" is not, or "name' is declared as SHARED and its base class is not.