gpt4 book ai didi

c++ - 在 xcode 4 中, "other c flags"和 "other c++ flags"有什么区别?

转载 作者:太空宇宙 更新时间:2023-11-04 00:53:52 27 4
gpt4 key购买 nike

此外,将它们直接列在相应标签的对面是否为调试和发布设置了它们?

最佳答案

Xcode 帮助提供了相当清晰的定义:

Name: Other C Flags

Abstract: Space-separated list of additional flags to pass to the compiler for C and Objective-C files. Be sure to backslash-escape any arguments that contain spaces or special characters (e.g. path names that may contain spaces). Use this setting if Xcode does not already provide UI for a particular C or Objective-C compiler flag. [OTHER_CFLAGS]

Name: Other C++ Flags

Abstract: Space-separated list of additional flags to pass to the compiler for C++ and Objective-C++ files. Be sure to backslash-escape any arguments that contain spaces or special characters (e.g. path names that may contain spaces). Use this setting if Xcode does not already provide UI for a C++ or Objective-C++ compiler flag. [OTHER_CPLUSPLUSFLAGS]

因此在编译 C 和 Obj-C 源文件时,“Other C Flags”被传递给编译器。 “其他 C++ 标志”在编译 C++ 和 Obj-C++ 源文件时传递给编译器。

第二个问题:是的。您可以通过点击“其他 cflags”左侧的显示三角形,然后将所需标志放在与所需配置对应的行上,为调试或发布或其他配置指定标志。

关于c++ - 在 xcode 4 中, "other c flags"和 "other c++ flags"有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9576426/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com