Re: CW .a files
Re: CW .a files
- Subject: Re: CW .a files
- From: Rainer Brockerhoff <email@hidden>
- Date: Thu, 20 Nov 2003 14:04:27 -0200
>From: Godfrey DiGiorgi <email@hidden>
>Date: Wed, 19 Nov 2003 17:05:51 -0800
>
>Let me be certain I understand correctly:
>
>- eSellerate is providing you with a library that you need to link into
>your application.
>- The library generated by the CodeWarrior Mach-O tools.
>
>If this is the case, presumably the CodeWarrior Mach-O tools should be
>producing a well-formed Mach-O library that ld is able to link. No
>conversion should be necessary, you should be able to include it in
>your project's build process, specify any link parameters required, and
>be done. On the other hand, if the library is not well-formed, it
>should emit link errors.
>
>On Nov 19, 2003, at 2:21 PM, Mark Munz wrote:
>
>> I may have missed earlier discussions on this (unfortunately, there
>> doesn't seem to be any searchable archives), but Xcode seems to choke
>> on a CW generated .a file. Specifically the libeSellerate.a (from
>> eSellerate).
>>
>> 1. Do we have to do some sort of conversion when dealing with CW
>> mach-o files? Or is this a bug with Xcode?
>> 2. If it's the former, is there a reason why Xcode doesn't offer to do
> > this for us instead of just complaining?
I also had problems with the eSellerate libraries when I first converted my project to Xcode.
I succeeded in fixing this by:
1) running "ranlib libeSellerate.a" (and "ranlib libeValidate.a") on the Terminal;
2) removing the references to the libraries from the project and reinserting them.
Step 1 seems to make sure that the lib's TOC is in the correct format; step 2 seems to fix some conversion problem when the project is converted to Xcode, possibly related to the way that the "lib" prefix and ".a" extensions are handled in Xcode (or were handled in PB).
HTH,
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"It's extremely unlucky to be superstitious, for no other reason
than it is always unlucky to be colossally stupid." (Stephen Fry)
Weblog: http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.