How I do compile a application against a static library compiled with libc++ in xcode/clang/macos?

给你一囗甜甜゛ 提交于 2019-12-05 19:29:30

It seems that one of your dependencies (libtorrent) has been built against libstdc++.

Check the namespace : std::__1::basic_string. It has the __1 prefix, usually indicating libstdc++).

I may be wrong but I think you need to rebuild your libtorrent against libc++ if you absolutely want to use this one.

Note that it is pretty common to use the stdlibc++.

Did you by any chance compile libtorrent with a -D_LIBCPP_INLINE_VISIBILITY=""?

The reason I ask is that std::string::empty() isn't in libc++.dylib because it is marked up with "always_inline". And so it should have been inlined into libtorrent when it was used.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!