Re: How to tell linker to bind init at runtime
Re: How to tell linker to bind init at runtime
- Subject: Re: How to tell linker to bind init at runtime
- From: Chris Hanson <email@hidden>
- Date: Wed, 5 Apr 2006 14:49:00 -0700
On Apr 4, 2006, at 11:52 PM, j o a r wrote:
On 5 apr 2006, at 08.47, John McLaughlin wrote:
The problem seems to revolve around Class Methods (e.g. Init &
Friends). Is there a way to instantiate a object but tell the
linker to resolve it at run time (at run time the plugin is loaded
and the code exists in the main application)
Check "man ld" and look for "-bundle_loader".
Also, see the Xcode build settings documentation (in the Help menu)
in Xcode 2.1 or later for the "BUNDLE_LOADER" build setting. This
passes -bundle_loader to the linker, so you don't have to figure out
how to use OTHER_LDFLAGS to do so.
"-bundle_loader foo" tells the linker to link your bundle against
"foo" as if it were a dynamic library at link time, and to look for
the symbols resolved against "foo" in whatever loads your bundle at
run time.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden