About write object-c class in cocos2d-x,please help me

I’ll use nsnotification to send the data from one thread to another ,so i write an obejct-c class in my .h file ,but there are some erros ,such as “Expected unqualified -id before ’’@” token ",i don’t know how do fix it
help!

You had to write objc source in .mm file, gcc cannot recognize objc keywords.