On May 4, 2011, at 09:12, Gustavo Pizano wrote:

>  linker problems

Vagueness like this makes it hard to help you. Sometimes the actual error 
messages are important in deciding where to look for a solution.

> What can I do? 

I'd very seriously suggest you don't use a static library at all. It really 
doesn't provide you with any benefits, so you may as well include the source 
code directly instead.

The whole point -- well, *a* whole point -- of a static library (in traditional 
C terms) is to allow you to link just those parts that are referenced by your 
client application, without having to figure it out for yourself. This doesn't 
work very well in Objective-C, because the language's dynamism makes it 
impossible in general to determine what's "referenced" at link time.

If you have other reasons for library-izing your Objective-C code, a framework 
is a much better choice, probably.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to