How to tell linker to bind init at runtime
How to tell linker to bind init at runtime
- Subject: How to tell linker to bind init at runtime
- From: John McLaughlin <email@hidden>
- Date: Tue, 4 Apr 2006 23:47:32 -0700
Hi All,
I have a question that I'm sure is covered somewhere but no amount of
'searching' in the archives seems to uncover.
I have an application that is a plugin for a bigger application. I
compile against a plugin framework and for the most part all is
good. Tonight I was trying something new, I tried to instantiate an
object that I have the header for but isn't in the framework -- the
actual code is in the main application (which eventually loads my
plugin)
The Linker complains
/usr/bin/ld: Undefined symbols:
.objc_class_name_MyClassWhosCodeIsInMainApp
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)
I hope I described this well & thanks in advance.
-john
_______________________________________________
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