大佬教程收集整理的这篇文章主要介绍了xcode – 来自链接器(ld)的奇怪警告,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
该应用程序正常工作,但广告编译时我们总是得到这些奇怪的链接器警告:
ld: warning: direct access in ___cxx_global_var_init17 to global weak symbol __ZGVN4i18n12phonenumbers9SingletonINS0_15PhonenumberUtilEE8instanceE means the weak symbol cAnnot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility setTings. ld: warning: direct access in ___cxx_global_var_init17 to global weak symbol __ZGVN4i18n12phonenumbers9SingletonINS0_15PhonenumberUtilEE8instanceE means the weak symbol cAnnot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility setTings. ld: warning: direct access in ___cxx_global_var_init17 to global weak symbol __ZN5boost10scoped_ptrIN4i18n12phonenumbers15PhonenumberUtilEED1Ev means the weak symbol cAnnot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility setTings. ld: warning: direct access in ___cxx_global_var_init17 to global weak symbol __ZN4i18n12phonenumbers9SingletonINS0_15PhonenumberUtilEE8instanceE means the weak symbol cAnnot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility setTings. ld: warning: direct access in ___cxx_global_var_init17 to global weak symbol __ZGVN4i18n12phonenumbers9SingletonINS0_15PhonenumberUtilEE8instanceE means the weak symbol cAnnot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility setTings.
> libphonenumber,这是导致5个警告中的4个的显然。由我们通过“cmake”编译。
boost(libboost_thread-mt),负责1警告。与MacPorts编译。
>使用MacPorts编译的ICU(libicudata,libicuuc,libicui18n)。
> Protocol Buffers,通过“./configure&& make”编译。
请注意:
>尽管有警告,应用程序仍然运行正常,但我们希望能够摆脱这些问题,因为它们令人讨厌。
> xcode with boost : linker(Id) Warning about visibility settings提出的解决方案不起作用:“默认隐藏的符号”一直是“是”。
以上是大佬教程为你收集整理的xcode – 来自链接器(ld)的奇怪警告全部内容,希望文章能够帮你解决xcode – 来自链接器(ld)的奇怪警告所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。