ld: warning: -macosx_version_min not specified
来源:互联网 发布:linux系统如何安装软件 编辑:程序博客网 时间:2024/05/21 07:06
编辑静态库的时候,遇到了如下的错误:
ld: warning: -macosx_version_min not specified
脑袋犯浑了,不知道是啥原因,最后才发现,
macosx_version_min
这个参数没设置而已,例如,我以前的命令是:
ld -dylib -lsystem -lobjc -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/ -o libXXXX.dylib Desktop/XXXXX.o
修改之后的结果是:
ld -dylib -lsystem -lobjc <span style="color:#ff0000;">-macosx_version_min 10.10 </span> -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/ -o libXXXX.dylib Desktop/XXXXX.o
这样就可以了
0 0
- ld: warning: -macosx_version_min not specified
- “ld: warning: directory not found for option”
- ‘ld: warning: directory not found for option’
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- ld: warning: directory not found for option 解决方法
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- 解决警告“ld: warning: directory not found for option”
- ld: warning: directory not found for option“XXXXXX”
- 解决警告“ld: warning: directory not found for option”
- ld: warning: directory not found for option - 家柱
- Xcode解决警告“ld: warning: directory not found for option”
- 【解决方法】ld: warning: directory not found for option
- 解决警告“ld: warning: directory not found for option”
- 【解决方法】ld: warning: directory not found for option
- iOS文件目录结构
- 进制转换
- 安装openTLD出现ld libopencv_gpu问题解决方案
- hdu 2032 杨辉三角(2)
- sql优化
- ld: warning: -macosx_version_min not specified
- Ubuntu12.04 64位安装qq
- B+树,聚集索引,非聚集索引(辅助索引) 之一
- 科大讯飞 无录音权限
- 亲和数
- 前k小的数求法
- android 定时器
- 不使用sizeof求一个变量的大小
- IF-ERRORLEVEL使用方法