2

I have a static library which uses RestKit internally (but does not expose RestKit: headers etc).

I want to use this static library in a project which uses RestKit already.

As expected, I get duplicate symbols.

How do I get around this? Can I build my static library without "bundling" in RestKit?

It would be ideal if my static library can use RestKit, but not include it.

4

1 回答 1

0

如果您知道静态库使用哪个版本的 RestKit,您可以在项目中下载该版本的标头,并正常调用其对象/方法。

在构建项目时,如果其他静态库在内部编译该库的实现,则链接器应该找到符号。

于 2013-10-06T16:28:15.353 回答