我正在尝试让MGTwitterEngine为iPhone软件开发工具包工作。但是得到以下错误
Undefined symbols for architecture i386:
"_yajl_alloc", referenced from:
-[MGTwitterYAJLParser initWithJSON:delegate:connectionIdentifier:requestType:responseType:URL:deliveryOptions:] in MGTwitterYAJLParser.o
"_yajl_parse", referenced from:
-[MGTwitterYAJLParser initWithJSON:delegate:connectionIdentifier:requestType:responseType:URL:deliveryOptions:] in MGTwitterYAJLParser.o
"_yajl_get_error", referenced from:
-[MGTwitterYAJLParser initWithJSON:delegate:connectionIdentifier:requestType:responseType:URL:deliveryOptions:] in MGTwitterYAJLParser.o
"_yajl_free_error", referenced from:
-[MGTwitterYAJLParser initWithJSON:delegate:connectionIdentifier:requestType:responseType:URL:deliveryOptions:] in MGTwitterYAJLParser.o
"_yajl_free", referenced from:
-[MGTwitterYAJLParser initWithJSON:delegate:connectionIdentifier:requestType:responseType:URL:deliveryOptions:] in MGTwitterYAJLParser.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status有什么想法吗?提前感谢您的帮助!
发布于 2011-10-16 16:21:52
在您的build目标中,您需要排除名称中包含"YAJL“的文件。
如果您使用的是Xcode4,应该可以在目标的构建阶段的“编译源”下访问它。
https://stackoverflow.com/questions/7783063
复制相似问题