Thanks, but I managed to solve it already in other way:)
It occurred I was including an Obj-C Class (.h and .m file), which somehow produced that error in Cocos2D. I guess it has to do with the automatic recognition of language by Xcode during compiling. After I renamed the .m file extension to .mm the error went away. So you might want to check if you have such case in your project.