Closed cntys closed 7 years ago
請問能分享下您如何編譯的嗎?
您好,我通过xcode编译了一个能在iOS设备上能用的rime的.a库,但是在项目使用librime.a的时候一直报 "std::1::basic_string<char, std::__1::char_traits, std::1::allocator > boost::locale::conv::to_utf(char const, char const, std::1::basic_string<char, std::__1::char_traits, std::1::allocator > const&, boost::locale::conv::method_type)", referenced from: rime::CodepointTranslator::Query(std::1::basic_string<char, std::__1::char_traits, std::1::allocator > const&, rime::Segment const&) in liblibrime.a(codepoint_translator.o) std::1::function::func<rime::CodepointTranslator::Initialize()::$_2, std::__1::allocatorrime::CodepointTranslator::Initialize()::$_2, std::1::basic_string<char, std::1::char_traits, std::1::allocator > (std::1::basic_string<char, std::1::char_traits, std::1::allocator > const&)>::operator()(std::1::basic_string<char, std::1::char_traits, std::__1::allocator > const&) in liblibrime.a(codepoint_translator.o) "std::1::basic_string<char, std::1::char_traits, std::__1::allocator > boost::locale::conv::from_utf(char const, char const, std::1::basic_string<char, std::1::char_traits, std::__1::allocator > const&, boost::locale::conv::method_type)", referenced from: rime::CharsetFilter::FilterText(std::1::basic_string<char, std::1::char_traits, std::1::allocator > const&, std::1::basic_string<char, std::1::char_traits, std::__1::allocator > const&) in liblibrime.a(charset_filter.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 我已经在项目中添加了libc++这个库了,请问您是怎么编译?
@cntys 请问您是如果解决这个问题的呢?
您好,我通过xcode编译了一个能在iOS设备上能用的rime的.a库,但是在项目使用librime.a的时候一直报 "std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > boost::locale::conv::to_utf(char const, char const, std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > const&, boost::locale::conv::method_type)", referenced from:
rime::CodepointTranslator::Query(std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > const&, rime::Segment const&) in liblibrime.a(codepoint_translator.o)
std::1::function::func<rime::CodepointTranslator::Initialize()::$_2, std::__1::allocator<rime::CodepointTranslator::Initialize()::$_2>, std::1::basic_string<char, std::1::char_traits, std::1::allocator > (std:: 1::basic_string<char, std:: 1::char_traits, std::1::allocator > const&)>::operator()(std:: 1::basic_string<char, std::1::char_traits, std::__1::allocator > const&) in liblibrime.a(codepoint_translator.o)
"std:: 1::basic_string<char, std::1::char_traits, std::__1::allocator > boost::locale::conv::from_utf(char const, char const, std:: 1::basic_string<char, std::1::char_traits, std::__1::allocator > const&, boost::locale::conv::method_type)", referenced from:
rime::CharsetFilter::FilterText(std:: 1::basic_string<char, std::1::char_traits, std::1::allocator > const&, std:: 1::basic_string<char, std:: 1::char_traits, std::__1::allocator > const&) in liblibrime.a(charset_filter.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我已经在项目中添加了libc++这个库了,请问您是怎么编译?