for "PID_TOUGH_GUARD_MALE" try to include "critrpid.h" and/or check you've made no mistake typing those "words"
the most simple way to link your .ssl and .msg file is to give them the same name, and to define "NAME" as well.
in your case : beatjg.ssl,beatjg.msg and #define NAME...