For Programmers: Free Programming Magazines  


Home > Archive > Objective C > March 2005 > Re: Creating objective-c archives









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Creating objective-c archives
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?

Tilo Prütz

2005-03-16, 4:04 pm

Michael Washington wrote:

> Hello Tilo,
>
> Thanks for your work
>



Don't mention it.

greetz

>tilo



P.S.: my favo(u)rite: dict.leo.org ;)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com