iOS   发布时间:2022-05-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了c – 如何摆脱OSX10.10 SDK中的module.map警告?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

自从将 Xcode更新到6.3版以来,我在编译C代码时收到了以下警告: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/module.map:1:25: warning: unknown attribute 'extern_
@H_674_7@
自从将 Xcode更新到6.3版以来,我在编译C代码时收到了以下警告:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/module.map:1:25: warning: unkNown attribute 'extern_c' [-Wignored-attributes]
module Darwin [system] [extern_c] {
                        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/module.map:1561:21: warning: unkNown attribute 'extern_c' [-Wignored-attributes]
module os [system] [extern_c] {
                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/module.map:1577:26: warning: unkNown attribute 'extern_c' [-Wignored-attributes]
module libkern [system] [extern_c] {
                         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/module.map:1602:23: warning: unkNown attribute 'extern_c' [-Wignored-attributes]
module ldap [system] [extern_c] {
                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/module.map:1635:23: warning: unkNown attribute 'extern_c' [-Wignored-attributes]
module krb5 [system] [extern_c] {
                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/module.map:1662:22: warning: unkNown attribute 'extern_c' [-Wignored-attributes]
module XPC [system] [extern_c] {
                     ^

除了忽略-Wignored属性之外,有没有人知道如何解决这个问题?

解决方法

事实证明我使用旧版本的clang和Xcode的SDK.使用认的clang删除警告.

大佬总结

以上是大佬教程为你收集整理的c – 如何摆脱OSX10.10 SDK中的module.map警告?全部内容,希望文章能够帮你解决c – 如何摆脱OSX10.10 SDK中的module.map警告?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。