简体   繁体   English

如何在Xcode C ++中更改编译器

[英]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. 我已经搜索了很长一段时间,我似乎无法找到如何在最新的Xcode上更改编译器。 I am not sure what it is set at currently, but I'd like to change it to GCC if possible. 我不确定目前的设置是什么,但如果可能,我想将其更改为GCC。 Right now my homework example will not recognize ptrace.h, so I think it might have to do with the chosen compiler. 现在我的作业示例将无法识别ptrace.h,因此我认为它可能与所选的编译器有关。

Screenshot of Build Rules: 构建规则的屏幕截图:

在此输入图像描述

You can add a rule for C++, click the "+" to the right of "Custom". 您可以为C ++添加规则,单击“自定义”右侧的“+”。

Select the project in the browser, then navigate to... 在浏览器中选择项目,然后导航到...

的XCode

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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