解决RegexKitLite编译报错

在编译RegexKitLite的时候,报错如下:

Undefined symbols for architecture i386:

"_uregex_open", referenced from:

_rkl_getCachedRegex in RegexKitLite.o

"_uregex_groupCount", referenced from:

_rkl_getCachedRegex in RegexKitLite.o

"_uregex_setText", referenced from:

_rkl_setCachedRegexToString in RegexKitLite.o

_rkl_clearCachedRegexSetTo in RegexKitLite.o

-[RKLBlockEnumerationHelper initWithRegex:options:string:range:error:]in RegexKitLite.o

"_uregex_start", referenced from:

_rkl_performRegexOp in RegexKitLite.o

_rkl_search in RegexKitLite.o

_rkl_findRanges in RegexKitLite.o

"_uregex_end", referenced from:

_rkl_performRegexOp in RegexKitLite.o

_rkl_search in RegexKitLite.o

_rkl_findRanges in RegexKitLite.o

"_uregex_find", referenced from:

_rkl_search in RegexKitLite.o

"_uregex_findNext", referenced from:

_rkl_search in RegexKitLite.o

_rkl_replaceAll in RegexKitLite.o

"_uregex_reset", referenced from:

_rkl_replaceAll in RegexKitLite.o

"_uregex_appendReplacement", referenced from:

_rkl_replaceAll in RegexKitLite.o

"_uregex_appendTail", referenced from:

_rkl_replaceAll in RegexKitLite.o

"_uregex_close", referenced from:

_rkl_clearCachedRegex in RegexKitLite.o

"_u_errorName", referenced from:

_rkl_userInfoDictionary in RegexKitLite.o

_rkl_makeNSError in RegexKitLite.o

_rkl_NSExceptionForRegex in RegexKitLite.o

"_u_strlen", referenced from:

_rkl_userInfoDictionary in RegexKitLite.o

"_uregex_clone", referenced from:

-[RKLBlockEnumerationHelper initWithRegex:options:string:range:error:]in RegexKitLite.o

ld: symbol(s) not found for architecture i386

collect2: ld returned 1 exit status

解决办法:

在项目的编译设置中找到Other Linker Flags,然后在后面字段空白处双击,添加“-licucore”就可以了。

时间: 2024-08-28 19:28:29

解决RegexKitLite编译报错的相关文章

10.24工作笔记——解决linux_jni编译报错问题

公司在用opus开源库,所以遇到了一些问题. 我将新下载的opus1.1替换掉老版本之后,单独编译opus没问题,可是编译相关的文件就会报错. 错误信息如下: g++ -Wall -fPIC -shared libusc_jni.o libusc.a ../api/libopus.a ../api/libspeex.a ../api/libamrnb.a ../api/libpcre.a -o libusc_jni.so -L. -lusc /usr/bin/ld: ../api/libopus

org.eclipse.wst.common.project.facet.core.xml文件模板,解决eclipse编译报错。

<?xml version="1.0" encoding="UTF-8"?> <faceted-project> <fixed facet="wst.jsdt.web"/> <fixed facet="jst.web"/> <fixed facet="java"/> <installed facet="jst.web" v

解决php编译报错configure: error: mcrypt.h not found. Please reinstall libmcrypt.

yum install -y epel-releaseyum install -y libmcrypt-devel 原文地址:https://www.cnblogs.com/finnlee/p/8992374.html

jack编译报错的问题

最近公司开发人员频繁jack的问题,我这边总结一下: 一. 第一种情况是服务器多人编译而产生的jack端口冲突的原因!报错提示如下: No Jack server running. Try 'jack-admin start-server' No Jack server running. Try 'jack-admin start-server 解决方法,首先第一步: 执行命令:cat ~/.jack-server/config.properties|grep -i port && cat

Android Studio导入Fresco项目编译报错unable to expand TAR &#39;imagepipeline\build\downloads\libjpeg-turbo-1.3.1.tar.gz&#39;解决

把github上的一个Fresco的demo源码clone到本地(附clone地址:https://github.com/facebook/fresco.git),导入这个fresco项目编译报了如题所示的错.经过网上搜索解决方案,只找到了下面链接给的解决方案: unable to expand TAR 'imagepipeline\build\downloads\libjpeg-turbo-1.3.1.tar.gz解决 按照上面链接给的方法试了一下,结果无法解决.还是报同样的错误.然后我试着去

选iphone5可以正常编译运行 , 但是5s和6和6s都会编译报错

选iphone5可以正常编译运行   但是5s和6和6s都会编译报错 iphone6编译报错iphone5s编译报错 解决办法是,Build settings里面把Architectures里面的$(ARCHS_STANDARD)去掉,加入armv7和armv7s两个.

DVR_RDK编译报错

报错信息: abnormal termination of /opt/dm8168/dvr_rdk/../ti_tools/cgt_dsp/cgt6x_7_3_5//bin/cmp6x make[2]: *** [/opt/dm8168/dvr_rdk/../dvr_rdk/build/dvr_rdk/obj/ti816x-evm/c6xdsp/debug/MAIN_APP_c6xdsp_pe674.oe674] Error 1 make[1]: *** [apps] Error 2 make:

Ubuntu下android studio 编译报错A problem occurred starting process &#39;command &#39;/Android/Sdk/build-tools/21.1.2/aapt&#39;&#39;

此问题在stack  over flow 上找到答案. 原链接地址:http://stackoverflow.com/questions/27589844/android-studio-1-0-2-not-building-appmergedebugresources-error 解决方法: //在终端分别运行下面两条指令,安装lib32stdc++6 和lib32z1 sudo apt-get install lib32stdc++6 sudo apt-get install lib32z1

「android」Ubuntu下android studio 编译报错A problem occurred starting process &#39;command &#39;/Android/Sdk/build-tools/21.1.2/aapt&#39;&#39;(转)

转自”http://www.cnblogs.com/jonzone/p/5246531.html“ 此问题在stack  over flow 上找到答案. 原链接地址:http://stackoverflow.com/questions/27589844/android-studio-1-0-2-not-building-appmergedebugresources-error 解决方法: //在终端分别运行下面两条指令,安装lib32stdc++6 和lib32z1 sudo apt-get