[SOLVED]Linking in Categories from static libraries.
[SOLVED]Linking in Categories from static libraries.
- Subject: [SOLVED]Linking in Categories from static libraries.
- From: Andrei Tchijov <email@hidden>
- Date: Fri, 4 Nov 2005 08:38:38 -0500
Sorry for panicking. The second I sent my e-mail I discovered this
http://www.cocoabuilder.com/archive/message/cocoa/2005/9/7/145905
"-ObjC" and "-all_load" did the trick
Andrei Tchijov
Leaping Bytes, LLC
web: www.leapingbytes.com
email: email@hidden
AIM: leapingbytes
Google: email@hidden
ICQ: 151229319
On Nov 4, 2005, at 8:29 AM, Andrei Tchijov wrote:
Hi,
I am having difficulties with getting Objective C Categories
linked in from static library. I have a custom framework which
could be build either as "framework" or as static library. It
works great when I am using it in form of "framework" but when I am
trying to link it in as a static library, I am getting "selector
not recognized" on one of methods which belongs to "Category".
Also, it looks like, Mac OS X linker will link only "used" portion
of static library. For example if library contains some class
which is not refereed from application, then this class will not be
linked in. (I have a class which is refereed from NIB but not from
application itself. it was not linked in until I created dummy
method where I allocated dummy object of this class) Does it sound
right? Is it possible to force linker to link the WHOLE library?
You comment/replays will be highly appreciated,
Andrei Tchijov
Leaping Bytes, LLC
web: www.leapingbytes.com
email: email@hidden
AIM: leapingbytes
Google: email@hidden
ICQ: 151229319
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden