Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change compiler in Xcode C++

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.

like image 763
user1765804 Avatar asked Aug 29 '15 15:08

user1765804


1 Answers

Screenshot of Build Rules:

enter image description here

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

like image 179
zaph Avatar answered Sep 19 '22 17:09

zaph