iphone - Three20链接器错误

我有以下代码行:

if( !self.isLoading && TTIsEmptyString !TTIsEmptyString(_username) )

并导致以下错误:

undefined symbol :
“_TTIsEmptyString”,引用自:
-UserModel.o中的[UserModel load:more:]
ld:找不到符号
collect2:ld返回1退出状态

我读过,链接器错误来自“不包括”库,但是three20库包含在我的项目中。

有任何想法吗?

最佳答案

我相信,最新版本的Three20删除了此方法,但并未真正引起它的注意。我花了一些时间进行故障排除,但是基本上您只需要将对TTIsEmptyString的所有调用更改为TTIsSetWithItems,例如:

if( !self.isLoading && !TTIsSetWithItems(_username) )

希望这对您有用。

https://stackoverflow.com/questions/2448660/

相关文章:

visual-studio-2008 - 从VS2008 Prof迁移到VC++ Express 2

asp.net-mvc - 将生成配置更改为生产时的编译错误-C#MVC

gwt - 使用跨站点支持编译 GWT 代码时出错

visual-studio - 在 Release模式下执行构建/重建解决方案时,VS2003错误

groovy - Groovy GString 中的变量引用

compiler-errors - TestNG对我来说很好用,但对其他工程师抛出com.googl

actionscript-3 - Flash ActionScript 文件突然无法编译?

compiler-errors - 打包双字节文件名时出错

iphone - 找不到库-命令/Developer/Platforms/iPhoneSimulat

c# - 在VS 2008解决方案中添加了项目;建立依赖性获取编译器错误CS0246