Problem with static function declaration

That has nothing to do with using “static.” I think it would happen when you make another change that requires re-generation, and it means your install is somehow not correct.