iOS 项目上的 SQLite ICU 支持

问题描述 投票:0回答:1

我需要支持希腊字符(非 ascii),所以我知道我必须在我的 sqlite 版本上启用 ICU。相信我,我尝试了在互联网上找到的所有方法,但每次都会出现某种问题。

实际上,我正在使用 这个库 来编译 SQLite 的自定义版本,并使用 这个 来获取 ICU 框架。

在一个完全空白的项目中,这些是我得到的错误列表:

Undefined symbol: std::__1::__call_once(unsigned long volatile&, void*, void (*)(void*))

Undefined symbol: std::__1::condition_variable::notify_all()

Undefined symbol: std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&)

Undefined symbol: std::__1::condition_variable::~condition_variable()

Undefined symbol: std::__1::mutex::lock()

Undefined symbol: std::__1::mutex::unlock()

Undefined symbol: std::__1::mutex::~mutex()

Undefined symbol: std::terminate()

Undefined symbol: vtable for __cxxabiv1::__class_type_info

Undefined symbol: vtable for __cxxabiv1::__si_class_type_info

Undefined symbol: vtable for __cxxabiv1::__vmi_class_type_info

Undefined symbol: operator delete(void*)

Undefined symbol: ___cxa_bad_typeid

Undefined symbol: ___cxa_begin_catch

Undefined symbol: ___cxa_pure_virtual

Undefined symbol: ___dynamic_cast

Undefined symbol: ___gxx_personality_v0

Linker command failed with exit code 1 (use -v to see invocation)

有没有更简单的方法来支持非ascii字符?

我尝试在我的 sqlite 版本中支持 ICU。我遇到了很多编译错误。

ios sqlite icu
1个回答
0
投票

好吧,我在构建设置 -> 其他链接器标志中缺少 -lc++ 标志 Flag

© www.soinside.com 2019 - 2024. All rights reserved.