How to change compiler in Xcode C++

user1765804 picture user1765804 · Aug 29, 2015 · Viewed 13k times · Source

I've been searching for quite some time, and I can't seem to find out how to change the compiler on the latest Xcode. I am not sure what it is set at currently, but I'd like to change it to GCC if possible. Right now my homework example will not recognize ptrace.h, so I think it might have to do with the chosen compiler.

Answer

zaph picture zaph · Aug 29, 2015

Screenshot of Build Rules:

enter image description here

You can add a rule for C++, click the "+" to the right of "Custom".