加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

objective-c – 什么是GCC_NO_COMMON_BLOCKS用于?

发布时间:2020-12-15 02:01:05 所属栏目:百科 来源:网络整理
导读:我发现我的项目集 GCC_NO_COMMON_BLOCKS = NO 在Apple LLVM编译器3.1 – 代码生成设置下,作为“无通用块” 我想知道:这个旗是用什么来的? 非常感谢 解决方法 从Xcode的快速帮助: In C,allocate even uninitialized global variables in the data section
我发现我的项目集

GCC_NO_COMMON_BLOCKS = NO

在Apple LLVM编译器3.1 – 代码生成设置下,作为“无通用块”

我想知道:这个旗是用什么来的?

非常感谢

解决方法

从Xcode的快速帮助:

In C,allocate even uninitialized global variables in the data section
of the object file,rather than generating them as common blocks.
This has the effect that if the same variable is declared (without
extern ) in two different compilations,you will get an error when you
link them. The only reason this might be useful is if you wish to
verify that the program will work on other systems which always work
this way.

您可以在右窗格中的“显示快速帮助检查器”选项卡下找到快速帮助:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读