前段时间我写了一个要点:https ://gist.github.com/611157 。它编译并工作正常。
我最近回到它,它不再遵守。
我注意到它使用 LLVM 2.0 编译没有问题或警告(然后运行并工作!)
使用 LLVM GCC 4.2 无法编译。我收到以下错误
error: incompatible block pointer types initializing 'signed char (^)(struct objc_object *, struct NSString *)', expected 'BOOL (^)(struct objc_object *, struct objc_object *)'
我觉得我的声明丢失或错误,但我不知道,所以我想我会问。
有什么想法吗?