problem with compile error NSObjCRuntion.h NSZone.h NSObject.h

hey.there! i met a strange problem. when i compile my project , the compiler told me there are compile errors in NSObjCRuntion.h NSZone.h NSObject.h ! like: Unkown type name ‘NSString’, Expected unqualified-id and “Too many errors emitted”. what’s wrong? any help,thanks

I believe this is a issue with the preprocessor getting confused with your .cpp file and you including a objective c library. If you use a if def it should fix it like so
#if __OBJC__ #include //whatever file/library you need that is objective C #endif