I have an Xcode project for iOS in Xcode 7.0 that contains Objective-C, C++, and C code. Xcode tries to compile the C++ header files with the extension .h (not .hpp) as C header files which generates errors.
How do I fix this? There should be a setting for which files should be compiled as which language.
.hppshould also work..hppdid you check the file inspector. It should say that the type is "Default - C++ Header". Also, since you've been playing around with the build settings, you might want to start a new project, so that all the build settings are back to their defaults.