templateForMainHeader(MessageHeader * header) probably needs to be declared.