Linker warning about shared_ptr on Mac, when compiling for iOS.

Jan Iversen jani at libreoffice.org
Wed Oct 18 17:11:02 UTC 2017


Hi

I am getting this warning when linking (OSX sierra, building for iOS simulator):

ld: warning: direct access in function 'std::__1::__shared_ptr_pointer<std::__1::vector<short, std::__1::allocator<short> >*, std::__1::default_delete<std::__1::vector<short, std::__1::allocator<short> > >, std::__1::allocator<std::__1::vector<short, std::__1::allocator<short> > > >::__get_deleter(std::type_info const&) const' from file '/Volumes/LIBREOFFICE/ios/core/ios/generated/libLibreOfficeKit_X86_64_debug.a(libLibreOfficeKit.a-x86_64-master.o)' to global weak symbol 'typeinfo for std::__1::default_delete<std::__1::vector<short, std::__1::allocator<short> > >' from file '/Volumes/LIBREOFFICE/ios/core/ios/generated/libLibreOfficeKit_X86_64_debug.a(libLibreOfficeKit.a-x86_64-master.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

I remember having seen some commits (and discussions) about the shared_ptr implementation, but I am unsure if I should take this warning seriously ?

Thanks in advance for a bit of advice.

rgds
jan I.




More information about the LibreOffice mailing list