xcode 6.4中的链接器警告 我使用C++库项目(使用Boost 1.57库)来处理iOS应用程序,当我构建应用程序时,我收到了数百条链接警告。该应用程序运行完全正常

xcode 6.4中的链接器警告 我使用C++库项目(使用Boost 1.57库)来处理iOS应用程序,当我构建应用程序时,我收到了数百条链接警告。该应用程序运行完全正常,c++,ios,xcode,boost,linker-warning,C++,Ios,Xcode,Boost,Linker Warning,突出的警告是 ld: warning: direct access in boost::exception_ptr boost::exception_detail::get_static_exception_object<boost::exception_detail::bad_exception_>() to global weak symbol boost::exception_ptr boost::exception_detail::get_static_exception_o

突出的警告是

ld: warning: direct access in boost::exception_ptr boost::exception_detail::get_static_exception_object<boost::exception_detail::bad_exception_>() to global weak symbol boost::exception_ptr boost::exception_detail::get_static_exception_object<boost::exception_detail::bad_exception_>()::ep 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:在boost::exception\u ptr boost::exception\u detail::get\u static\u exception\u object()中直接访问全局弱符号boost::exception\u ptr boost::exception\u detail::get\u static\u exception\u object():ep表示无法在运行时重写弱符号。这可能是由使用不同可见性设置编译的不同翻译单元造成的。
如何消除这些链接器警告?除了镇压,还有什么其他可能的办法吗


感谢您,我在xcode构建设置中将“默认隐藏的符号”更改为“是”,将“隐藏的内联方法”更改为“是”,从而消除了这些链接器警告


iOS的boost库是使用-fvisibility=hidden-fvisibility inlines hidden标志构建的,xcode构建设置的符号可见性设置为YES。因此存在不匹配和链接器警告

这适用于调试版本吗?我发现我的编译器不会通过
-fvisibility=hidden
,除非我为发行版配置构建……有什么想法/想法吗?