• 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
porting to Xcode, weak linking and other fun stuff...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

porting to Xcode, weak linking and other fun stuff...


  • Subject: porting to Xcode, weak linking and other fun stuff...
  • From: Steve Christensen <email@hidden>
  • Date: Mon, 27 Mar 2006 14:38:31 -0800

I'm in the process of both porting a bunch of existing plug-in code from Codewarrior to Xcode, as well as creating Universal Binary versions. The Xcode projects were created by importing CodeWarrior projects. For the most part it's going well, but I have a couple of issues that I hope someone can help me with.

1. The plug-ins run on 10.4.x (PowerPC and Intel), but won't load on 10.3.9. I have the following relevant build settings:

       GCC_VERSION_ppc                3.3
       MACOSX_DEPLOYMENT_TARGET_i386  10.4
       MACOSX_DEPLOYMENT_TARGET_ppc   10.3

Do I have to set some other mysterious build flag/switch/etc. to force weak-linking of 10.4 symbols for the PPC version, or does the MACOSX_DEPLOYMENT_TARGET_ppc setting take care of this automatically?

I don't know if it's relevant or not, but I separately build a static library containing shared utility routines, etc., and then link it into each of the plug-ins so that I'm not recompiling the same source files several dozen times. It uses the same build settings, above.

2. Is there a way for me to check which symbols (if any) are weak- linked, either from within Xcode or with nm, etc.? In nm I can see the undefined symbols but don't know how to figure out which ones are weak-linked, if any.

3. I have dead code stripping and stripping of non-global symbols turned on. I noticed, using nm, that there are a number of Carbon framework symbols that show up in the Xcode version that weren't showing up in the CodeWarrior version. They are symbols that are used in some of the utility routines in my static library, but those utility routines aren't actually being used. Any chance that dead code stripping is missing something?

Thanks,

steve

_______________________________________________
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


  • Prev by Date: Re: AutoReleasePool question.
  • Next by Date: Re: AutoReleasePool question.
  • Previous by thread: Re: Debugging on Intel
  • Next by thread: compilation inconsitencies
  • Index(es):
    • Date
    • Thread