Xcode 3.1.4中在何处添加-Wall和-Wextra [英] Where to add -Wall and -Wextra in Xcode 3.1.4
问题描述
我试图找出在Xcode中添加-Wall和-Wextra等额外警告标志的位置,我在Leopard上使用3.1.4版本。 Apple的文档适用于旧版本,如果我按照他们的指示进行操作,则会将我带到一个完全不同于他们显示的窗口。此外,他们还有特定警告标志清单的屏幕快照,我不知道该怎么办,即使那仍然存在。
I'm trying to figure out where to add extra warning flags like -Wall and -Wextra in Xcode, I'm using version 3.1.4 on Leopard. Apple's documentation is for an old version, if I follow their instructions it takes me to a completely different window than what they show. Also they have a screenshot of a checklist of specific warning flags, I can't figure out how to get to that or even if that's still around.
澄清:我我正在构建一个iPhone应用程序... bbum为我指出了OS X应用程序的正确位置,但是iPhone项目的选项有所不同,我看不出有明显的相似之处。
CLARIFICATION: I'm building an iPhone app... bbum pointed me to the right spot for an OS X app, but the options are different for an iPhone project and I don't see an obvious analogue.
推荐答案
在构建设置编辑器中(在Xcode的项目窗口中双击项目图标或单个目标),搜索其他。您应该看到其他C标志和其他C ++标志。您可以在此处添加任何其他标志。
In the build settings editor (double-click either the project icon or an individual target in Xcode's project window), search for "Other". You should see "Other C Flags" and "Other C++ Flags". You can add any additional flags there.
(请注意,如果您碰巧有一个没有源文件的项目-一个没有编译源文件的构建阶段)
(Note that you won't see either if you happen to have a project with no source files -- a project with no "compile source files" build phases)
这篇关于Xcode 3.1.4中在何处添加-Wall和-Wextra的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!