• 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: linking problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linking problem


  • Subject: Re: linking problem
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 4 Jul 2007 15:33:41 -0700

On Jul 4, 2007, at 1:59 PM, mark wrote:

How do I get the plugin to link against the application's 'activeView' when it loads and not the stub's?

You need to do two things:

(1) Make sure the "activeView" global is exported from the application, for example by means of a .exp file. This will ensure that the global is actually available for the plug-in to import.

(2) Link your plug-in directly against the application rather than against a stub library, by specifying the application as the Bundle Loader in your plug-in's target build settings. (Keep in mind that you'll need to pass the path to the actual application executable as the Bundle Loader, not just the path to the .app wrapper.) Quick documentation is available directly in the build settings inspector within Xcode, in Xcode 2.1 or later; you can also check the ld(1) man page section on its -bundle_loader flag for more details.

  -- Chris

_______________________________________________
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


  • Follow-Ups:
    • Re: linking problem
      • From: mark <email@hidden>
References: 
 >linking problem (From: mark <email@hidden>)

  • Prev by Date: Re: Xcode memory breakpoint - How?
  • Next by Date: Re: linking problem
  • Previous by thread: linking problem
  • Next by thread: Re: linking problem
  • Index(es):
    • Date
    • Thread