• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using Libraries on XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Libraries on XCode


  • Subject: Re: Using Libraries on XCode
  • From: Jim Ingham <email@hidden>
  • Date: Thu, 11 Aug 2005 11:50:32 -0700

If you have a CFM CodeWarrior library (that's what the "Carbon" templates produce, for instance), you can convert it to a Mach-O target in CodeWarrior. Then the CodeWarrior Mach-O librariy can be used in an Xcode project. But you can't link together CFM & Mach-O objects.

For complicated CFM apps, porting by going first from CFM -> Mach-o using CodeWarrior, then going from CodeWarrior Mach-O to Xcode may help you isolate the issues with each step. Though if your app is not all that big or complex, you can probably avoid this extra step.

Jim

On Aug 11, 2005, at 11:21 AM, Sailesh Agrawal wrote:

Peter S Lau wrote:


On 8/10/2005 9:13 AM, "olavi Sakari" <email@hidden> wrote:



I am porting an application from Code Warrior 8.3 to XCode 2.1
I have a small query,do the static libraries compiled on Code Warrior 8.3 link
successfully on XCode 2.1 just by changing the name from abc.lib - > libabc.a
or DO I have to recompile the whole of the library code in XCode 2.1 and then
use that newly built library in my main application.


Any reply will really be appreciated.



I guess it depends on the static library... If it's straight C interface, no
name mangling from C++, I would think it's okay... Ppc code is ppc code is
ppc code, right?



Not really. The object format that CodeWarrior produces is different. Running this command can get rid of the "Bad magic number" issue that you'll have:
* mwld -object mylib.lib -o mylib.o*
But you'll still run into lots of other issues.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Using Libraries on XCode (From: Peter S Lau <email@hidden>)
 >Re: Using Libraries on XCode (From: Sailesh Agrawal <email@hidden>)

  • Prev by Date: Re: Template Problems
  • Next by Date: Re: reducing ld's memory footprint (19 minutes of linking)
  • Previous by thread: Re: Using Libraries on XCode
  • Next by thread: Re: Using Libraries on XCode
  • Index(es):
    • Date
    • Thread