X code。与提升:关于可见性设置链接(ID)警告 [英] xcode with boost : linker(Id) Warning about visibility settings

查看:1195
本文介绍了X code。与提升:关于可见性设置链接(ID)警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用从下面我的​​iphone X code ++项目链接提振框架:
<一href=\"http://goodliffe.blogspot.com/2010/09/building-boost-framework-for-ios-iphone.html\">http://goodliffe.blogspot.com/2010/09/building-boost-framework-for-ios-iphone.html

I have been using a boost framework from the link below for my iphone xcode project: http://goodliffe.blogspot.com/2010/09/building-boost-framework-for-ios-iphone.html

它工作正常,但我总是得到数百苹果Mach-O的连接器(ID)警告喜欢的:

it works fine but I always get hundreds of Apple Mach-O Linker(id) Warnings like:

在__ZN5boost15program_options6detail7cmdline24handle_additional_parserERSt6vectorISsSaISsEE全球弱符号__ZTVN5boost17bad_function_callE直接接入手段弱符号不能在运行时被覆盖。这很可能是由不同的翻译单位造成正在编译不同的可见性设置。

Direct access in __ZN5boost15program_options6detail7cmdline24handle_additional_parserERSt6vectorISsSaISsEE to global weak symbol __ZTVN5boost17bad_function_callE means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

任何可以告诉我如何摆脱code的警告?
谢谢

Can any tell me how to get rid of those warnings in code ? Thanks

编辑:
通过将默认是隐藏的符号 = YES,我设法摆脱了大部分的警告,但有3个左右,不会走了,谁能告诉我,为什么?

edited: By set Symbols Hidden by Default = YES, I managed to get rid of most of the warnings but there are 3 more left which won't go away, can anyone tell me why ??

再次编辑:
经过重建reamining 3警告都不见了,以及!所以我的解决方案,并WROK!

edited again: After a rebuild the reamining 3 warning are gone as well ! So my solution did wrok !!

推荐答案

李四只是想出如何摆脱数百个这样的警告的:
对于整个目标或项目,默认隐藏在符号集合建立设置为

Doe just figured how to get rid of hundreds of warning like this : set for an entire target or project with the Symbols Hidden by Default build setting to YES

这篇关于X code。与提升:关于可见性设置链接(ID)警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆