• 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
How to tell linker to bind init at runtime
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to tell linker to bind init at runtime
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Problem with NSNumberFormatterCurrencyStyle on table cell
  • Next by Date: Re: How to tell linker to bind init at runtime
  • Previous by thread: Re: Problem with NSNumberFormatterCurrencyStyle on table cell
  • Next by thread: Re: How to tell linker to bind init at runtime
  • Index(es):
    • Date
    • Thread