私はプロジェクトに取り組んでいます、それは他の人によって書かれたC++ライブラリを使用したカカオ静的ライブラリです。このC++ライブラリは、C ++11およびlibc++(C++11をサポートするLLVMC++標準ライブラリ)を使用していました。
cocoaライブラリを正常に構築しましたが、アプリでこのライブラリをリンクすると(「バイナリとライブラリのリンク」にリンクを追加するだけです)。
エラーが発生しました。これはエラーログです。
"non-virtual thunk to std::__1::basic_iostream<char, std::__1::char_traits<char> >::~basic_iostream()", referenced from:
"non-virtual thunk to std::__1::basic_iostream<char, std::__1::char_traits<char> >::~basic_iostream()", referenced from:
"non-virtual thunk to std::__1::basic_istream<char, std::__1::char_traits<char> >::~basic_istream()", referenced from:
"non-virtual thunk to std::__1::basic_istream<char, std::__1::char_traits<char> >::~basic_istream()", referenced from:
"non-virtual thunk to std::__1::basic_istream<wchar_t, std::__1::char_traits<wchar_t> >::~basic_istream()", referenced from:
"non-virtual thunk to std::__1::basic_istream<wchar_t, std::__1::char_traits<wchar_t> >::~basic_istream()", referenced from:
"non-virtual thunk to std::__1::basic_ostream<char, std::__1::char_traits<char> >::~basic_ostream()", referenced from:
"non-virtual thunk to std::__1::basic_ostream<char, std::__1::char_traits<char> >::~basic_ostream()", referenced from:
"non-virtual thunk to std::__1::basic_ostream<wchar_t, std::__1::char_traits<wchar_t> >::~basic_ostream()", referenced from:
"non-virtual thunk to std::__1::basic_ostream<wchar_t, std::__1::char_traits<wchar_t> >::~basic_ostream()", referenced from:
"non-virtual thunk to std::__1::basic_iostream<char, std::__1::char_traits<char> >::~basic_iostream()", referenced from:
"non-virtual thunk to std::__1::basic_iostream<char, std::__1::char_traits<char> >::~basic_iostream()", referenced from:
"operator delete[](void*)", referenced from:
"operator delete(void*)", referenced from:
"operator new[](unsigned long)", referenced from:
"operator new(unsigned long)", referenced from:
"___cxa_begin_catch", referenced from:
"___cxa_end_catch", referenced from:
"___cxa_pure_virtual", referenced from:
"___cxa_rethrow", referenced from:
"___gxx_personality_v0", referenced from:
"_crc32", referenced from:
"_deflate", referenced from:
"_deflateEnd", referenced from:
"_deflateInit2_", referenced from:
"_get_crc_table", referenced from:
"_inflate", referenced from:
"_inflateEnd", referenced from:
"_inflateInit2_", referenced from:
C ++ 11ライブラリをリンクすることについての問題のように見えますが、私にはわかりません。APPでcocoa静的ライブラリをリンクするには、C ++11標準ではなくlibstdc++標準を使用した可能性があるため、ここで競合が発生しました。しかし、私はこれを確認しません。
私たちを手伝ってくれますか ?
ありがとう