Xcode 7.1, Build Settings,No Common Blocks备忘
来源:互联网 发布:攻壳机动队 知乎 编辑:程序博客网 时间:2024/05/20 18:15
Xcode 7.1, Build Settings,No Common Blocks备忘
今天在项目里拖进了一个第三方SDK的源码,项目编译时fail,错误信息是duplicate symbols for architecture arm64。百度半天无果,只能询问SDK开发的小伙伴,告诉我需要修改Build Settings里的No Common Blocks为NO。No Common Blocks的Quick Help信息如下:
GCC_NO_COMMON_BLOCKS
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.
[GCC_NO_COMMON_BLOCKS, -fno-common]
原来是在这个SDK里有的头文件声明了公共变量,然后在另外几个文件里import了这个头文件,No Common Blocks默认为YES,编译器就报错了。
0 0
- Xcode 7.1, Build Settings,No Common Blocks备忘
- Xcode 7.1, Build Settings,No Common Blocks备忘
- Bug:duplicate symbols for architecture arm64 ,Build Settings,No Common Blocks
- xcode build settings
- xcode build settings
- XCode Build Settings
- Xcode Build Settings 分析
- Xcode环境变量,Build Settings参数
- Xcode环境变量 build Settings 设置
- Xcode环境变量 build Settings 设置
- Xcode环境变量 build Settings 设置
- Xcode target build settings Architectures
- Xcode环境变量 build Settings 设置
- Xcode环境变量 build Settings 设置
- XCode Build Settings中几种Search Paths
- Xcode下Build Settings选项列表问题
- XCode Build Settings中几种Search Paths
- Xcode Build Settings中的Architecture概述
- BZOJ NOI十连测第一场
- C++程序设计语言练习7.9 迭代器的使用
- HDU 3486 RMQ+二分
- 玩kotlin,写个android里面的答题系统
- windows系统上nginx+memcached+tomcat的负载均衡
- Xcode 7.1, Build Settings,No Common Blocks备忘
- 武术即将作为体育中考必考项目
- APAP中REFRESH、CLEAR和FREE的区别
- LightOJ 1152 Hiding Gold 最大匹配
- SQL Server 语句转换格式函数Cast、Convert
- 为Android5.0及以上版本中的TextView等控件设置波纹效果
- CSS学习8(浮动和定位)
- 安卓开发中Theme.AppCompat.Light的解决方法
- 20ListView