| Michael Washington 2005-03-16, 4:04 pm |
| Hello Tilo,
Thanks for your work
[color=darkred]
> Hi,
>
> I have created an archive of objective-c objects using the following
> commands:
>
> ar -cr libfoo.a bar.o
> ranlibg libfoo.a
> I used this archive and everything worked well. Then I added a
> category to a
> class from another lib. This category is not initialized at runtime.
> The
> methods are not available.
> When I have a class and a category for this class in two different
> object
> files in an archive, this category is also not initialized:
> ar -cr libfoo.a Bar.o categoryOfBar.o
> ranlib libfoo.a
> When I have a class and a category for it in the same object file
> everything works well.
>
> When I compile my libs as shared objects, everything works well.
>
> Have I misused ar?
> Should objective-c archives be built another way?
> Or is this a bug? If, where? In ar, gcc or in the objective-c runtime?
|