a newer version of GCC in an old version of XCode



mmphosis's picture

This little note of wisdom helped...

If you are trying to compile something in xcode, and your project has files that are named the same as system files, like math.h, and you have problems with xcode including your math.h, even when you use #include <math.h> instead of “math.h”, then you have come to the right place.
You’d think you just need to uncheck ALWAYS_SEARCH_USER_PATHS, but no, because magical .hmap files will apparently still map math.h to your math.h no matter what you do.

No, the fix is to add a a user defined setting to your target:


XCode Header Map Files (2010) (meidell.dk)