如何配置和构建ICU,以便将其链接到我的iPhone应用程序?
我正在维护一个使用SQLite数据库的iPhone应用程序.现在我必须编译ICU支持enabled(SQLITE_ENABLE_ICU).我有最新的ICU来源.
configure我正在使用的标志:
./configure --target=arm-apple-darwin --enable-static --disable-shared
Run Code Online (Sandbox Code Playgroud)
之后,运行gnumake没有错误.
然后我将库添加到我的Xcode项目中.但是当我构建时,我得到50行:
Undefined symbols:
"_uregex_close_48", referenced from:
_icuRegexpDelete in libsqlite3-cerod.a(sqlite3_cerod.o)
"_ubrk_current_48", referenced from:
_icuNext in libsqlite3-cerod.a(sqlite3_cerod.o)
"_ucol_strcoll_48", referenced from:
_icuCollationColl in libsqlite3-cerod.a(sqlite3_cerod.o)
"_u_isspace_48", referenced from:
_icuRegexpFunc in libsqlite3-cerod.a(sqlite3_cerod.o)
"_utf8_countTrailBytes_48", referenced from:
_utf8_countTrailBytes_48$non_lazy_ptr in libsqlite3-cerod.a(sqlite3_cerod.o)
(maybe you meant: _utf8_countTrailBytes_48$non_lazy_ptr)
"_ubrk_next_48", referenced from:
_icuNext in libsqlite3-cerod.a(sqlite3_cerod.o)
Run Code Online (Sandbox Code Playgroud)
知道我做错了什么吗?
编辑添加:
当我将库添加到项目中时(右键单击项目名称,然后添加现有...),我得到:
ld: warning: in /Users/eric.grunin/dev/iOS/icu/source/lib/libicudata.a, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: …Run Code Online (Sandbox Code Playgroud) 我正在寻找一种方法来取一个数字(比如5或207),拼出来,并将其序数形式作为一个字符串(五或二百七)返回.我所能找到的只是代码,它接受一个数字并返回它的序数后缀(st,nd,rd,th)和英语语法指南的部分,说你应该拼写出序数.
我正在寻找一种方法来获得带有序数后缀(第五或第二百零七)的拼写数字.