简体   繁体   中英

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.

Screenshot of Build Rules:

在此输入图像描述

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

Select the project in the browser, then navigate to...

的XCode

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM