XCode编译器错误:ld:库未找到-loauth [英] XCode Compiler Error: ld: library not found for -loauth

查看:265
本文介绍了XCode编译器错误:ld:库未找到-loauth的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用Twitter库,并添加 liboauth.a 并添加 oauthconsumeriphonelib 到我的标题搜索路径,我现在下来1编译错误,我似乎无法摆脱。

I'm trying to use the Twitter libraries and after adding liboauth.a and adding oauthconsumeriphonelib to my header search path, I'm now down to 1 compilation error, which I can't seem to get rid of.

ld: library not found for -loauth
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

任何人都知道可能导致这种情况的原因是什么?

Anyone know what could be causing this?

推荐答案

建议您还需要设置库搜索路径。右键单击目标文件并选择 - 获取信息,否则您也可以通过选择编辑ActCode目标在XCode中的项目选项卡下。查找库搜索路径并添加这个$(SRCROOT)/ Twitter + OAuth / SAOAuthTwitterEngine其中Twitter + OAuth / SAOAuthTwitterEngine是项目文件夹中的Twitter库的目录路径。
我希望这将解决问题。

Continuing to What Robin suggested You also need to set the Library Search Path. Right Click the Target File and Choose -- Get Info else you can also get the same by choosing Edit Actice Target Under the Project Tab in XCode. Look for Library Search Path and add this "$(SRCROOT)/Twitter+OAuth/SAOAuthTwitterEngine" Where Twitter+OAuth/SAOAuthTwitterEngine is the directory path for Twitter Library in project folder. I hope this will fix the problem.

这篇关于XCode编译器错误:ld:库未找到-loauth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆